forked from ShuriZma/suyu
yuzu: Remove exit lock for game pausing
This removes the "exit lock" popup from yuzu when pausing a game. Motivation The exit lock feature is broken in many ways and doesn't work properly in a lot of games, causing it to appear every time you want to pause the game or stop it, even in places where it wouldn't on Switch. Additionally, the feature of pausing a game doesn't exist like this on Switch and yuzu should be guaranteed to be deterministic anyway, so pausing the emulation shouldn't be able to interrupt any critical processes in any way.
This commit is contained in:
parent
2b4cdb73b6
commit
7cbe6748c3
|
@ -1717,11 +1717,6 @@ void GMainWindow::OnStartGame() {
|
||||||
}
|
}
|
||||||
|
|
||||||
void GMainWindow::OnPauseGame() {
|
void GMainWindow::OnPauseGame() {
|
||||||
Core::System& system{Core::System::GetInstance()};
|
|
||||||
if (system.GetExitLock() && !ConfirmForceLockedExit()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
emu_thread->SetRunning(false);
|
emu_thread->SetRunning(false);
|
||||||
|
|
||||||
ui.action_Start->setEnabled(true);
|
ui.action_Start->setEnabled(true);
|
||||||
|
|
Loading…
Reference in New Issue