1
0
mirror of synced 2024-11-12 10:10:53 +01:00

fix: Explicitly convert path to string for crash file (#1102)

This commit is contained in:
iTrooz 2023-05-25 09:25:40 +02:00 committed by GitHub
parent 79306fa6e1
commit 7d457998d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)) {