mirror of
https://github.com/RPCS3/rpcs3.git
synced 2024-11-23 03:02:53 +01:00
Fix cellGameCreateGameData temporary path
This commit is contained in:
parent
73f7ab29bc
commit
dde4a9c6e7
@ -83,8 +83,8 @@ void fmt_class_string<CellDiscGameError>::format(std::string& out, u64 arg)
|
|||||||
// contentInfo = "/dev_bdvd/PS3_GAME"
|
// contentInfo = "/dev_bdvd/PS3_GAME"
|
||||||
// usrdir = "/dev_bdvd/PS3_GAME/USRDIR"
|
// usrdir = "/dev_bdvd/PS3_GAME/USRDIR"
|
||||||
// Temporary content directory (dir is not empty):
|
// Temporary content directory (dir is not empty):
|
||||||
// contentInfo = "/dev_hdd1/game/" + dir
|
// contentInfo = "/dev_hdd0/game/_GDATA_" + time_since_epoch
|
||||||
// usrdir = "/dev_hdd1/game/" + dir + "/USRDIR"
|
// usrdir = "/dev_hdd0/game/_GDATA_" + time_since_epoch + "/USRDIR"
|
||||||
// Normal content directory (dir is not empty):
|
// Normal content directory (dir is not empty):
|
||||||
// contentInfo = "/dev_hdd0/game/" + dir
|
// contentInfo = "/dev_hdd0/game/" + dir
|
||||||
// usrdir = "/dev_hdd0/game/" + dir + "/USRDIR"
|
// usrdir = "/dev_hdd0/game/" + dir + "/USRDIR"
|
||||||
@ -119,7 +119,7 @@ struct content_permission final
|
|||||||
}
|
}
|
||||||
catch (...)
|
catch (...)
|
||||||
{
|
{
|
||||||
cellGame.fatal("Failed to clean directory '/dev_hdd1/game/%s'", dir);
|
cellGame.fatal("Failed to clean directory '%s'", temp);
|
||||||
catch_all_exceptions();
|
catch_all_exceptions();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -581,8 +581,9 @@ error_code cellGameCreateGameData(vm::ptr<CellGameSetInitParams> init, vm::ptr<c
|
|||||||
return CELL_GAME_ERROR_NOTSUPPORTED;
|
return CELL_GAME_ERROR_NOTSUPPORTED;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string tmp_contentInfo = "/dev_hdd1/game/" + prm->dir;
|
std::string dirname = "_GDATA_" + std::to_string(steady_clock::now().time_since_epoch().count());
|
||||||
std::string tmp_usrdir = "/dev_hdd1/game/" + prm->dir + "/USRDIR";
|
std::string tmp_contentInfo = "/dev_hdd0/game/" + dirname;
|
||||||
|
std::string tmp_usrdir = "/dev_hdd0/game/" + dirname + "/USRDIR";
|
||||||
|
|
||||||
if (!fs::create_dir(vfs::get(tmp_contentInfo)))
|
if (!fs::create_dir(vfs::get(tmp_contentInfo)))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user