mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-03 06:05:01 -06:00
Let guest override argv[0] (#4432)
This commit is contained in:
parent
4fae53f791
commit
425f26c749
@ -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();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user