mirror of
https://github.com/ARMSX2/ARMSX2.git
synced 2026-08-24 16:50:16 -07:00
Qt: Fix logic for resetting the VM when changing discs
This commit is contained in:
committed by
lightningterror
parent
a5577ba93c
commit
dee4938c2b
@@ -3732,8 +3732,6 @@ void MainWindow::doDiscChange(CDVD_SourceType source, const QString& path)
|
||||
reset_system = (message.clickedButton() == reset_button);
|
||||
}
|
||||
|
||||
switchToEmulationView();
|
||||
|
||||
g_emu_thread->changeDisc(source, path);
|
||||
if (reset_system)
|
||||
{
|
||||
@@ -3743,6 +3741,11 @@ void MainWindow::doDiscChange(CDVD_SourceType source, const QString& path)
|
||||
else
|
||||
g_emu_thread->resetVM();
|
||||
}
|
||||
|
||||
// We have to do this after resetting the VM, otherwise the reset would be
|
||||
// deferred since the VM would be running, and then VMLock::~VMLock would
|
||||
// trample the reset state with its unpause event.
|
||||
switchToEmulationView();
|
||||
}
|
||||
|
||||
MainWindow::VMLock MainWindow::pauseAndLockVM()
|
||||
|
||||
Reference in New Issue
Block a user