Fix boot by RPCS3_GAMEID constants

This commit is contained in:
Megamouse 2023-02-20 21:28:19 +01:00
parent 3922f76ab5
commit 364c33060b
3 changed files with 12 additions and 9 deletions

View file

@ -1193,13 +1193,13 @@ int main(int argc, char** argv)
{
std::string spath = sstr(::at32(args, 0));
if (spath.starts_with("%RPCS3_VFS%"))
if (spath.starts_with(Emulator::vfs_boot_prefix))
{
sys_log.notice("Booting application from command line using VFS path: %s", spath.substr(("%RPCS3_VFS%"sv).size()));
sys_log.notice("Booting application from command line using VFS path: %s", spath.substr(Emulator::vfs_boot_prefix.size()));
}
else if (spath.starts_with("%RPCS3_GAMEID%"))
else if (spath.starts_with(Emulator::game_id_boot_prefix))
{
sys_log.notice("Booting application from command line using GAMEID: %s", spath.substr(("%RPCS3_GAMEID%"sv).size()));
sys_log.notice("Booting application from command line using GAMEID: %s", spath.substr(Emulator::game_id_boot_prefix.size()));
}
else
{