From 0f91f06d87c9673db741de757961997f912dcb17 Mon Sep 17 00:00:00 2001 From: offtkp Date: Wed, 2 Oct 2024 03:59:34 +0300 Subject: [PATCH] Log the path too --- src/core/file_format/trp.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/core/file_format/trp.cpp b/src/core/file_format/trp.cpp index 17eea9f36..6a250dbf8 100644 --- a/src/core/file_format/trp.cpp +++ b/src/core/file_format/trp.cpp @@ -104,12 +104,13 @@ bool TRP::Extract(const std::filesystem::path& trophyPath) { size_t pos = xml_name.find("ESFM"); if (pos != std::string::npos) xml_name.replace(pos, xml_name.length(), "XML"); - size_t written = - Common::FS::IOFile::WriteBytes(trpFilesPath / "Xml" / xml_name, XML); + std::filesystem::path path = trpFilesPath / "Xml" / xml_name; + size_t written = Common::FS::IOFile::WriteBytes(path, XML); if (written != XML.size()) { - LOG_CRITICAL(Common_Filesystem, - "Trophy XML write failed, wanted to write {} bytes, wrote {}", - XML.size(), written); + LOG_CRITICAL( + Common_Filesystem, + "Trophy XML {} write failed, wanted to write {} bytes, wrote {}", + fmt::UTF(path.u8string()), XML.size(), written); } } }