From 7d457998d7a3f282d8b6672d209cc3cb48dbaf1e Mon Sep 17 00:00:00 2001 From: iTrooz Date: Thu, 25 May 2023 09:25:40 +0200 Subject: [PATCH] fix: Explicitly convert path to string for crash file (#1102) --- main/source/window/window.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main/source/window/window.cpp b/main/source/window/window.cpp index 5cfd4226b..6b68fd980 100644 --- a/main/source/window/window.cpp +++ b/main/source/window/window.cpp @@ -47,8 +47,8 @@ namespace hex { static void saveCrashFile(){ nlohmann::json crashData{ - {"logFile", hex::log::getFile().getPath()}, - {"project", ProjectFile::getPath()}, + {"logFile", wolv::util::toUTF8String(hex::log::getFile().getPath())}, + {"project", wolv::util::toUTF8String(ProjectFile::getPath())}, }; for (const auto &path : fs::getDefaultPaths(fs::ImHexPath::Config)) {