Trophy: check both bdvd and hdd locations

This commit is contained in:
Nekotekina 2017-12-29 20:04:40 +03:00
parent e836c33f37
commit a92bf39efa

View file

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