mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
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:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user