mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-10 00:41:26 +12:00
cellGame: fix some installation issues
fixes HAWX2 (at least until it crashes again)
This commit is contained in:
parent
d9d5f45e9e
commit
e3ea29599d
1 changed files with 14 additions and 1 deletions
|
@ -833,11 +833,24 @@ error_code cellGameGetSizeKB(vm::ptr<s32> size)
|
||||||
return CELL_GAME_ERROR_FAILURE;
|
return CELL_GAME_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (Emu.GetCat() == "DG")
|
||||||
|
{
|
||||||
|
return CELL_GAME_ERROR_NOTSUPPORTED;
|
||||||
|
}
|
||||||
|
|
||||||
const std::string local_dir = !prm->temp.empty() ? prm->temp : vfs::get("/dev_hdd0/game/" + prm->dir);
|
const std::string local_dir = !prm->temp.empty() ? prm->temp : vfs::get("/dev_hdd0/game/" + prm->dir);
|
||||||
|
|
||||||
if (!fs::is_dir(local_dir))
|
if (!fs::is_dir(local_dir))
|
||||||
{
|
{
|
||||||
return CELL_GAME_ERROR_ACCESS_ERROR;
|
if (fs::g_tls_error == fs::error::noent)
|
||||||
|
{
|
||||||
|
*size = 0;
|
||||||
|
return CELL_OK;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return CELL_GAME_ERROR_ACCESS_ERROR;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*size = ::narrow<u32>(fs::get_dir_size(local_dir) / 1024);
|
*size = ::narrow<u32>(fs::get_dir_size(local_dir) / 1024);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue