mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 14:01:25 +12:00
Fix cellGameContentPermit
This commit is contained in:
parent
eb081bbcfa
commit
88b6d51643
1 changed files with 5 additions and 3 deletions
|
@ -398,14 +398,16 @@ error_code cellGameContentPermit(vm::ptr<char[CELL_GAME_PATH_MAX]> contentInfoPa
|
||||||
return CELL_GAME_ERROR_FAILURE;
|
return CELL_GAME_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (prm->can_create && prm->temp.empty())
|
const std::string dir = prm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + prm->dir;
|
||||||
|
|
||||||
|
if (prm->can_create && prm->temp.empty() && !fs::is_dir(vfs::get(dir)))
|
||||||
{
|
{
|
||||||
|
strcpy_trunc(*contentInfoPath, "");
|
||||||
|
strcpy_trunc(*usrdirPath, "");
|
||||||
verify(HERE), fxm::remove<content_permission>();
|
verify(HERE), fxm::remove<content_permission>();
|
||||||
return CELL_OK;
|
return CELL_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string dir = prm->dir.empty() ? "/dev_bdvd/PS3_GAME"s : "/dev_hdd0/game/" + prm->dir;
|
|
||||||
|
|
||||||
if (!prm->temp.empty())
|
if (!prm->temp.empty())
|
||||||
{
|
{
|
||||||
// Make temporary directory persistent
|
// Make temporary directory persistent
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue