mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-08 16:01:42 +12:00
Allow BootGame with indirect paths
This commit is contained in:
parent
08aaae7999
commit
2c32a721fc
2 changed files with 14 additions and 9 deletions
|
@ -669,24 +669,29 @@ game_boot_result Emulator::BootGame(const std::string& path, const std::string&
|
|||
if (g_cfg.vfs.limit_cache_size)
|
||||
LimitCacheSize();
|
||||
|
||||
static const char* boot_list[] =
|
||||
if (!fs::exists(path))
|
||||
{
|
||||
"/eboot.bin",
|
||||
"/EBOOT.BIN",
|
||||
"/USRDIR/EBOOT.BIN",
|
||||
"/USRDIR/ISO.BIN.EDAT",
|
||||
"/PS3_GAME/USRDIR/EBOOT.BIN",
|
||||
};
|
||||
return game_boot_result::invalid_file_or_folder;
|
||||
}
|
||||
|
||||
m_path_old = m_path;
|
||||
|
||||
if (direct && fs::exists(path))
|
||||
if (direct || fs::is_file(path))
|
||||
{
|
||||
m_path = path;
|
||||
return Load(title_id, add_only, force_global_config);
|
||||
}
|
||||
|
||||
game_boot_result result = game_boot_result::nothing_to_boot;
|
||||
|
||||
static const char* boot_list[] =
|
||||
{
|
||||
"/EBOOT.BIN",
|
||||
"/USRDIR/EBOOT.BIN",
|
||||
"/USRDIR/ISO.BIN.EDAT",
|
||||
"/PS3_GAME/USRDIR/EBOOT.BIN",
|
||||
};
|
||||
|
||||
for (std::string elf : boot_list)
|
||||
{
|
||||
elf = path + elf;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue