Skip to content

Commit 0f75ec7

Browse files
committed
UI: Exit pcsx2 on game close
1 parent b8d376e commit 0f75ec7

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

pcsx2-qt/QtHost.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,8 +1270,10 @@ void Host::RequestVMShutdown(bool allow_confirm, bool allow_save_state, bool def
12701270

12711271
// This will probably call shutdownVM() again, but by the time it runs, we'll have already shut down
12721272
// and it'll be a noop.
1273-
if (QtHost::InBatchMode())
1274-
QMetaObject::invokeMethod(g_main_window, "requestExit", Qt::QueuedConnection, Q_ARG(bool, false));
1273+
1274+
//ptr2plus - comment this out so that we always exit window when closing game
1275+
//if (QtHost::InBatchMode())
1276+
QMetaObject::invokeMethod(g_main_window, "requestExit", Qt::QueuedConnection, Q_ARG(bool, false));
12751277
}
12761278
}
12771279

pcsx2/ImGui/FullscreenUI.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1211,7 +1211,7 @@ void FullscreenUI::RequestShutdown(bool save_state)
12111211
if (result)
12121212
DoShutdown(save_state);
12131213

1214-
ClosePauseMenu();
1214+
//ClosePauseMenu(); //ptr2plus - dont close pause menu that we don't flick back to gameplay when exiting
12151215
});
12161216
}
12171217

0 commit comments

Comments
 (0)