mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-06 15:01:18 +12:00
Fix disable screensaver workaround (#728)
This commit is contained in:
parent
b3180bc4a6
commit
cb9570e229
4 changed files with 19 additions and 5 deletions
|
@ -60,7 +60,7 @@ void CemuConfig::Load(XMLConfigParser& parser)
|
|||
did_show_macos_disclaimer = parser.get("macos_disclaimer", did_show_macos_disclaimer);
|
||||
fullscreen = parser.get("fullscreen", fullscreen);
|
||||
proxy_server = parser.get("proxy_server", "");
|
||||
disable_screensaver = parser.get("disable_screensaver", true);
|
||||
disable_screensaver = parser.get("disable_screensaver", disable_screensaver);
|
||||
|
||||
// cpu_mode = parser.get("cpu_mode", cpu_mode.GetInitValue());
|
||||
//console_region = parser.get("console_region", console_region.GetInitValue());
|
||||
|
|
|
@ -367,7 +367,15 @@ struct CemuConfig
|
|||
ConfigValue<bool> fullscreen_menubar{ false };
|
||||
ConfigValue<bool> fullscreen{ false };
|
||||
ConfigValue<std::string> proxy_server{};
|
||||
ConfigValue<bool> disable_screensaver{true};
|
||||
|
||||
// temporary workaround because feature crashes on macOS
|
||||
#if BOOST_OS_MACOS
|
||||
#define DISABLE_SCREENSAVER_DEFAULT false
|
||||
#else
|
||||
#define DISABLE_SCREENSAVER_DEFAULT true
|
||||
#endif
|
||||
ConfigValue<bool> disable_screensaver{DISABLE_SCREENSAVER_DEFAULT};
|
||||
#undef DISABLE_SCREENSAVER_DEFAULT
|
||||
|
||||
std::vector<std::wstring> game_paths;
|
||||
std::mutex game_cache_entries_mutex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue