new option to disable overlay progress notifications

This commit is contained in:
otavepto 2024-06-05 22:56:05 +03:00
parent a384994ac2
commit 663f1a9350
3 changed files with 7 additions and 0 deletions

View File

@ -270,6 +270,7 @@ public:
int overlay_renderer_detector_timeout_sec = 15; // "Saints Row (2022)" takes almost ~8 sec to detect renderer (DX12)
bool disable_overlay_achievement_notification = false;
bool disable_overlay_friend_notification = false;
bool disable_overlay_achievement_progress = false;
//warn people who use local save
bool overlay_warn_local_save = false;
//disable overlay warning for local save

View File

@ -645,6 +645,7 @@ static std::set<std::string> parse_supported_languages(class Local_Storage *loca
// if the current emu language is not in the supported languages list
if (!supported_languages.count(language)) {
if (first_language.size()) { // get the first supported language if the list wasn't empty
PRINT_DEBUG("[?] Your language '%s' isn't found in supported_languages.txt, using '%s' instead", language.c_str(), first_language.c_str());
language = first_language;
} else { // otherwise just lie and add it then!
supported_languages.insert(language);
@ -1222,6 +1223,9 @@ static void parse_overlay_general_config(class Settings *settings_client, class
settings_client->disable_overlay_friend_notification = ini.GetBoolValue("overlay::general", "disable_friend_notification", settings_client->disable_overlay_friend_notification);
settings_server->disable_overlay_friend_notification = ini.GetBoolValue("overlay::general", "disable_friend_notification", settings_server->disable_overlay_friend_notification);
settings_client->disable_overlay_achievement_progress = ini.GetBoolValue("overlay::general", "disable_achievement_progress", settings_client->disable_overlay_achievement_progress);
settings_server->disable_overlay_achievement_progress = ini.GetBoolValue("overlay::general", "disable_achievement_progress", settings_server->disable_overlay_achievement_progress);
settings_client->disable_overlay_warning_any = ini.GetBoolValue("overlay::general", "disable_warning_any", settings_client->disable_overlay_warning_any);
settings_server->disable_overlay_warning_any = ini.GetBoolValue("overlay::general", "disable_warning_any", settings_server->disable_overlay_warning_any);

View File

@ -23,6 +23,8 @@ renderer_detector_timeout_sec=15
disable_achievement_notification=0
# disable friends invitations and messages notifications
disable_friend_notification=0
# disable showing notifications for achievements progress
disable_achievement_progress=0
# disable any warning in the overlay
disable_warning_any=0
# disable the bad app ID warning in the overlay