Make the ini tweak available for everybody.
This commit is contained in:
parent
8a78f5e814
commit
9af40da53e
4 changed files with 5 additions and 4 deletions
|
@ -309,8 +309,8 @@ static ConfigSetting generalSettings[] = {
|
||||||
ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0), // 0 will be automatically reset later (need to do the AdjustWindowRect dance).
|
ConfigSetting("WindowWidth", &g_Config.iWindowWidth, 0), // 0 will be automatically reset later (need to do the AdjustWindowRect dance).
|
||||||
ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0),
|
ConfigSetting("WindowHeight", &g_Config.iWindowHeight, 0),
|
||||||
ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false),
|
ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false),
|
||||||
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true),
|
|
||||||
#endif
|
#endif
|
||||||
|
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true),
|
||||||
ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false),
|
ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false),
|
||||||
ConfigSetting(false),
|
ConfigSetting(false),
|
||||||
};
|
};
|
||||||
|
|
|
@ -72,9 +72,10 @@ public:
|
||||||
bool bTopMost;
|
bool bTopMost;
|
||||||
std::string sFont;
|
std::string sFont;
|
||||||
bool bIgnoreWindowsKey;
|
bool bIgnoreWindowsKey;
|
||||||
bool bPauseWhenMinimized;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
bool bPauseWhenMinimized;
|
||||||
|
|
||||||
#if !defined(MOBILE_DEVICE)
|
#if !defined(MOBILE_DEVICE)
|
||||||
bool bPauseExitsEmulator;
|
bool bPauseExitsEmulator;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -135,7 +135,7 @@ void UpdateScreenScale(int width, int height) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void UpdateRunLoop() {
|
void UpdateRunLoop() {
|
||||||
if (windowHidden) {
|
if (windowHidden && g_Config.bPauseWhenMinimized) {
|
||||||
sleep_ms(16);
|
sleep_ms(16);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1100,7 +1100,7 @@ namespace MainWindow
|
||||||
ResizeDisplay();
|
ResizeDisplay();
|
||||||
break;
|
break;
|
||||||
case SIZE_MINIMIZED:
|
case SIZE_MINIMIZED:
|
||||||
Core_NotifyWindowHidden(g_Config.bPauseWhenMinimized);
|
Core_NotifyWindowHidden(true);
|
||||||
if (!g_Config.bPauseWhenMinimized) {
|
if (!g_Config.bPauseWhenMinimized) {
|
||||||
NativeMessageReceived("window minimized", "true");
|
NativeMessageReceived("window minimized", "true");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue