mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-05 08:52:36 +00:00
Fix trophy path handling
This commit is contained in:
parent
f9e3fdfbbf
commit
4a82f4717e
@ -557,10 +557,10 @@ s32 PS4_SYSV_ABI sceNpTrophyGetTrophyUnlockState(OrbisNpTrophyContext context,
|
|||||||
|
|
||||||
const auto trophyDir =
|
const auto trophyDir =
|
||||||
Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) / game_serial / "TrophyFiles";
|
Common::FS::GetUserPath(Common::FS::PathType::MetaDataDir) / game_serial / "TrophyFiles";
|
||||||
|
auto trophy_file = trophyDir / "trophy00" / "Xml" / "TROP.XML";
|
||||||
|
|
||||||
pugi::xml_document doc;
|
pugi::xml_document doc;
|
||||||
pugi::xml_parse_result result =
|
pugi::xml_parse_result result = doc.load_file(trophy_file.native().c_str());
|
||||||
doc.load_file((trophyDir.string() + "/trophy00/Xml/TROP.XML").c_str());
|
|
||||||
|
|
||||||
int numTrophies = 0;
|
int numTrophies = 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user