Make trophy toast duration configurable (5-10s, default 6s) (#1538)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Felipe
2026-10-15 20:37:51 -03:00
committed by GitHub
parent 54abbf48f2
commit 57c4a6ee11
9 changed files with 47 additions and 1 deletions
+7
View File
@@ -91,6 +91,8 @@ static void PrintUsage() {
" --sync-raw-image-buffers <true|false> Synchronize raw reads of GPU images. Default: false.\n");
::printf(
" --trophy-notifications <true|false> Show trophy unlock toasts and play their sound.\n");
::printf(
" --trophy-duration <seconds> Trophy toast duration, 5-10. Default: 6.\n");
::printf(" --playgo-hack Use the supplied PlayGo stub fallback.\n");
::printf(
" --skip-notice-screen <true|false> Skip startup logos and notices in supported games.\n"
@@ -384,6 +386,11 @@ static bool ParseArgs(int argc, char* argv[], RunOptions& options, bool& show_he
::printf("invalid vblank frequency: %s\n", value.c_str());
return false;
}
} else if (arg == "--trophy-duration") {
if (!ParseUint32(value, options.config.trophy_duration_seconds)) {
::printf("invalid trophy duration: %s\n", value.c_str());
return false;
}
} else if (arg == "--console-language") {
if (!ParseConsoleLanguage(value, options.config.console_language)) {
::printf("invalid console language: %s\n", value.c_str());