1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 18:53:28 +01:00

Fix cellGameCreateGameData temporary path

This commit is contained in:
isJuhn 2018-06-06 20:24:55 +02:00 committed by Ivan
parent 73f7ab29bc
commit dde4a9c6e7

View File

@ -83,8 +83,8 @@ void fmt_class_string<CellDiscGameError>::format(std::string& out, u64 arg)
// contentInfo = "/dev_bdvd/PS3_GAME"
// usrdir = "/dev_bdvd/PS3_GAME/USRDIR"
// Temporary content directory (dir is not empty):
// contentInfo = "/dev_hdd1/game/" + dir
// usrdir = "/dev_hdd1/game/" + dir + "/USRDIR"
// contentInfo = "/dev_hdd0/game/_GDATA_" + time_since_epoch
// usrdir = "/dev_hdd0/game/_GDATA_" + time_since_epoch + "/USRDIR"
// Normal content directory (dir is not empty):
// contentInfo = "/dev_hdd0/game/" + dir
// usrdir = "/dev_hdd0/game/" + dir + "/USRDIR"
@ -119,7 +119,7 @@ struct content_permission final
}
catch (...)
{
cellGame.fatal("Failed to clean directory '/dev_hdd1/game/%s'", dir);
cellGame.fatal("Failed to clean directory '%s'", temp);
catch_all_exceptions();
}
}
@ -581,8 +581,9 @@ error_code cellGameCreateGameData(vm::ptr<CellGameSetInitParams> init, vm::ptr<c
return CELL_GAME_ERROR_NOTSUPPORTED;
}
std::string tmp_contentInfo = "/dev_hdd1/game/" + prm->dir;
std::string tmp_usrdir = "/dev_hdd1/game/" + prm->dir + "/USRDIR";
std::string dirname = "_GDATA_" + std::to_string(steady_clock::now().time_since_epoch().count());
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)))
{