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("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),
}; };

View file

@ -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

View file

@ -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;
} }

View file

@ -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");
} }