mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Log the path too
This commit is contained in:
parent
b58b9a251f
commit
0f91f06d87
@ -104,12 +104,13 @@ bool TRP::Extract(const std::filesystem::path& trophyPath) {
|
|||||||
size_t pos = xml_name.find("ESFM");
|
size_t pos = xml_name.find("ESFM");
|
||||||
if (pos != std::string::npos)
|
if (pos != std::string::npos)
|
||||||
xml_name.replace(pos, xml_name.length(), "XML");
|
xml_name.replace(pos, xml_name.length(), "XML");
|
||||||
size_t written =
|
std::filesystem::path path = trpFilesPath / "Xml" / xml_name;
|
||||||
Common::FS::IOFile::WriteBytes(trpFilesPath / "Xml" / xml_name, XML);
|
size_t written = Common::FS::IOFile::WriteBytes(path, XML);
|
||||||
if (written != XML.size()) {
|
if (written != XML.size()) {
|
||||||
LOG_CRITICAL(Common_Filesystem,
|
LOG_CRITICAL(
|
||||||
"Trophy XML write failed, wanted to write {} bytes, wrote {}",
|
Common_Filesystem,
|
||||||
XML.size(), written);
|
"Trophy XML {} write failed, wanted to write {} bytes, wrote {}",
|
||||||
|
fmt::UTF(path.u8string()), XML.size(), written);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user