Fix disable screensaver workaround (#728)

This commit is contained in:
goeiecool9999 2023-03-30 11:32:25 +02:00 committed by GitHub
parent b3180bc4a6
commit cb9570e229
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 5 deletions

View file

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