Let guest override argv[0] (#4432)

This commit is contained in:
Stephen Miller 2026-05-15 12:46:12 -05:00 committed by GitHub
parent 4fae53f791
commit 425f26c749
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -320,6 +320,8 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
if (args.size() > 32) { if (args.size() > 32) {
LOG_ERROR(Loader, "Too many game arguments, only passing the first 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; std::filesystem::path mods_folder = game_folder;
@ -482,7 +484,6 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> args,
}); });
} }
args.insert(args.begin(), guest_eboot_path);
linker->Execute(args); linker->Execute(args);
window->InitTimers(); window->InitTimers();