mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-05-26 13:50:37 +00:00
Let guest override argv[0] (#4432)
This commit is contained in:
+2
-1
@@ -320,6 +320,8 @@ void Emulator::Run(std::filesystem::path file, std::vector<std::string> 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<std::string> args,
|
||||
});
|
||||
}
|
||||
|
||||
args.insert(args.begin(), guest_eboot_path);
|
||||
linker->Execute(args);
|
||||
|
||||
window->InitTimers();
|
||||
|
||||
Reference in New Issue
Block a user