fix: Explicitely convert std::fs::path to std::string (#1116)

This should fix the current crash when opening a project on Windows
This commit is contained in:
iTrooz
2023-05-28 11:36:08 +02:00
committed by GitHub
parent e599d31625
commit ea756e620e

View File

@@ -68,7 +68,7 @@ namespace hex::plugin::builtin::recent {
nlohmann::json recentEntry {
{"type", "project"},
{"displayName", displayName},
{"path", ProjectFile::getPath()}
{"path", wolv::util::toUTF8String(ProjectFile::getPath())}
};
recentFile.writeString(recentEntry.dump(4));