mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Expose --escape-exit and --pause-menu-exit to be set from the ini file
You can now set --escape-exit by setting `PauseExitsEmulator = true` in [General]. You can now set --pause-menu-exit by setting `PauseMenuExitsEmulator = true` in [General].
This commit is contained in:
parent
da318e0974
commit
af17112bf4
3 changed files with 3 additions and 3 deletions
|
@ -289,6 +289,9 @@ static const ConfigSetting generalSettings[] = {
|
|||
#endif
|
||||
|
||||
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, false, CfgFlag::PER_GAME),
|
||||
ConfigSetting("PauseExitsEmulator", &g_Config.bPauseExitsEmulator, false, CfgFlag::DONT_SAVE),
|
||||
ConfigSetting("PauseMenuExitsEmulator", &g_Config.bPauseMenuExitsEmulator, false, CfgFlag::DONT_SAVE),
|
||||
|
||||
ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false, CfgFlag::PER_GAME),
|
||||
ConfigSetting("FullscreenOnDoubleclick", &g_Config.bFullscreenOnDoubleclick, true, CfgFlag::DONT_SAVE),
|
||||
ConfigSetting("ShowMenuBar", &g_Config.bShowMenuBar, true, CfgFlag::DEFAULT),
|
||||
|
|
|
@ -97,7 +97,6 @@ public:
|
|||
|
||||
bool bPauseWhenMinimized;
|
||||
|
||||
// Not used on mobile devices.
|
||||
bool bPauseExitsEmulator;
|
||||
bool bPauseMenuExitsEmulator;
|
||||
|
||||
|
|
|
@ -584,10 +584,8 @@ void NativeInit(int argc, const char *argv[], const char *savegame_dir, const ch
|
|||
fileToLog = argv[i] + strlen("--log=");
|
||||
if (!strncmp(argv[i], "--state=", strlen("--state=")) && strlen(argv[i]) > strlen("--state="))
|
||||
stateToLoad = Path(std::string(argv[i] + strlen("--state=")));
|
||||
#if !defined(MOBILE_DEVICE)
|
||||
if (!strncmp(argv[i], "--escape-exit", strlen("--escape-exit")))
|
||||
g_Config.bPauseExitsEmulator = true;
|
||||
#endif
|
||||
if (!strncmp(argv[i], "--pause-menu-exit", strlen("--pause-menu-exit")))
|
||||
g_Config.bPauseMenuExitsEmulator = true;
|
||||
if (!strcmp(argv[i], "--fullscreen")) {
|
||||
|
|
Loading…
Add table
Reference in a new issue