From 425f26c74980e538206d89b062bf4d5ff867332d Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Fri, 15 May 2026 12:46:12 -0500 Subject: [PATCH] Let guest override argv[0] (#4432) --- src/emulator.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/emulator.cpp b/src/emulator.cpp index f5a8ab2ab..35f8ebe3b 100644 --- a/src/emulator.cpp +++ b/src/emulator.cpp @@ -320,6 +320,8 @@ void Emulator::Run(std::filesystem::path file, std::vector args, if (args.size() > 32) { LOG_ERROR(Loader, "Too many game arguments, only passing the first 32"); } + } else { + args.insert(args.begin(), guest_eboot_path); } std::filesystem::path mods_folder = game_folder; @@ -482,7 +484,6 @@ void Emulator::Run(std::filesystem::path file, std::vector args, }); } - args.insert(args.begin(), guest_eboot_path); linker->Execute(args); window->InitTimers();