mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-31 20:41:45 +01:00
HLE: Always return empty paths if game content does not exist in cellGameContentPermit
This commit is contained in:
parent
04deb97f94
commit
5a049322ed
@ -399,6 +399,7 @@ error_code cellGameBootCheck(vm::ptr<u32> type, vm::ptr<u32> attributes, vm::ptr
|
||||
perm->dir = std::move(dir);
|
||||
perm->sfo = std::move(sfo);
|
||||
perm->restrict_sfo_params = *type == u32{CELL_GAME_GAMETYPE_HDD}; // Ratchet & Clank: All 4 One (PSN versions) rely on this error checking (TODO: Needs proper hw tests)
|
||||
perm->exists = true;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -436,6 +437,7 @@ error_code cellGamePatchCheck(vm::ptr<CellGameContentSize> size, vm::ptr<void> r
|
||||
perm->restrict_sfo_params = false;
|
||||
perm->dir = Emu.GetTitleID();
|
||||
perm->sfo = std::move(sfo);
|
||||
perm->exists = true;
|
||||
|
||||
return CELL_OK;
|
||||
}
|
||||
@ -539,7 +541,7 @@ error_code cellGameContentPermit(vm::ptr<char[CELL_GAME_PATH_MAX]> contentInfoPa
|
||||
|
||||
const std::string dir = perm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + perm->dir;
|
||||
|
||||
if (perm->can_create && perm->temp.empty() && !fs::is_dir(vfs::get(dir)))
|
||||
if (perm->temp.empty() && !perm->exists)
|
||||
{
|
||||
perm->reset();
|
||||
strcpy_trunc(*contentInfoPath, "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user