- fixed sceAppContentTemporaryDataMount2

This commit is contained in:
raziel1000 2024-07-24 01:53:07 -06:00 committed by georgemoralis
parent f35518d527
commit a475b38e5f
2 changed files with 2 additions and 9 deletions

View file

@ -200,14 +200,7 @@ int PS4_SYSV_ABI sceAppContentTemporaryDataMount2(OrbisAppContentTemporaryDataOp
OrbisAppContentMountPoint* mountPoint) {
if (mountPoint == nullptr)
return ORBIS_APP_CONTENT_ERROR_PARAMETER;
auto* param_sfo = Common::Singleton<PSF>::Instance();
std::string id(param_sfo->GetString("CONTENT_ID"), 7, 9);
const auto& mount_dir = Common::FS::GetUserPath(Common::FS::PathType::TempDataDir) / id;
auto* mnt = Common::Singleton<Core::FileSys::MntPoints>::Instance();
if (std::string(mountPoint->data).empty()) // killzone
mnt->Mount(mount_dir, "/temp0");
else
mnt->Mount(mount_dir, mountPoint->data);
strncpy(mountPoint->data, "/temp0", 16);
LOG_INFO(Lib_AppContent, "sceAppContentTemporaryDataMount2: option = {}, mountPoint = {}",
option, mountPoint->data);
return ORBIS_OK;