Remove /app_home/ dependency

Should also fix exitspawn
This commit is contained in:
Nekotekina 2017-12-25 23:14:57 +03:00
parent a605919729
commit e768bdc80f
5 changed files with 62 additions and 46 deletions

View file

@ -196,7 +196,7 @@ error_code sceNpTrophyCreateContext(vm::ptr<u32> context, vm::cptr<SceNpCommunic
}
// open trophy pack file
fs::file stream(vfs::get("/app_home/../TROPDIR/" + name + "/TROPHY.TRP"));
fs::file stream(vfs::get((Emu.GetCat() == "DG" ? "/dev_bdvd/PS3_GAME/TROPDIR/"s : "/dev_hdd0/game/" + Emu.GetTitleID() + "/TROPDIR/") + name + "/TROPHY.TRP"));
// check if exists and opened
if (!stream)