(Android) Disabled the RunInBackground setting and corresponding menu option

This commit is contained in:
Leon Styhre 2023-12-23 23:14:25 +01:00
parent e3387c9016
commit 193f98cc1e
2 changed files with 4 additions and 0 deletions

View file

@ -1472,6 +1472,7 @@ void GuiMenu::openOtherOptions()
});
#endif
#if !defined(__ANDROID__)
// Run ES in the background when a game has been launched.
auto runInBackground = std::make_shared<SwitchComponent>();
runInBackground->setState(Settings::getInstance()->getBool("RunInBackground"));
@ -1482,6 +1483,7 @@ void GuiMenu::openOtherOptions()
s->setNeedsSaving();
}
});
#endif
#if defined(VIDEO_HW_DECODING)
// Whether to enable hardware decoding for the FFmpeg video player.

View file

@ -275,7 +275,9 @@ void Settings::setDefaults()
#if defined(_WIN64)
mBoolMap["HideTaskbar"] = {false, false};
#endif
#if !defined(__ANDROID__)
mBoolMap["RunInBackground"] = {false, false};
#endif
#if defined(VIDEO_HW_DECODING)
mBoolMap["VideoHardwareDecoding"] = {false, false};
#endif