Make the ini tweak available for everybody.

This commit is contained in:
The Dax 2014-06-30 13:04:44 -04:00 committed by Henrik Rydgard
parent 8a78f5e814
commit 9af40da53e
4 changed files with 5 additions and 4 deletions

View File

@ -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("WindowHeight", &g_Config.iWindowHeight, 0),
ConfigSetting("PauseOnLostFocus", &g_Config.bPauseOnLostFocus, false),
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true),
#endif
ConfigSetting("PauseWhenMinimized", &g_Config.bPauseWhenMinimized, true),
ConfigSetting("DumpDecryptedEboots", &g_Config.bDumpDecryptedEboot, false),
ConfigSetting(false),
};

View File

@ -72,9 +72,10 @@ public:
bool bTopMost;
std::string sFont;
bool bIgnoreWindowsKey;
bool bPauseWhenMinimized;
#endif
bool bPauseWhenMinimized;
#if !defined(MOBILE_DEVICE)
bool bPauseExitsEmulator;
#endif

View File

@ -135,7 +135,7 @@ void UpdateScreenScale(int width, int height) {
}
void UpdateRunLoop() {
if (windowHidden) {
if (windowHidden && g_Config.bPauseWhenMinimized) {
sleep_ms(16);
return;
}

View File

@ -1100,7 +1100,7 @@ namespace MainWindow
ResizeDisplay();
break;
case SIZE_MINIMIZED:
Core_NotifyWindowHidden(g_Config.bPauseWhenMinimized);
Core_NotifyWindowHidden(true);
if (!g_Config.bPauseWhenMinimized) {
NativeMessageReceived("window minimized", "true");
}