fix: Opening recent files with unicode characters in their path

This commit is contained in:
WerWolv 2022-02-16 10:53:48 +01:00
parent 60af9970c1
commit b79cfa213d
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ namespace hex::plugin::builtin {
}
for (const auto &path : ContentRegistry::Settings::read("hex.builtin.setting.imhex", "hex.builtin.setting.imhex.recent_files"))
s_recentFilePaths.emplace_back(path);
s_recentFilePaths.emplace_back(std::u8string(path.begin(), path.end()));
if (ImHexApi::System::getInitArguments().contains("tip-of-the-day")) {
s_tipOfTheDay = ImHexApi::System::getInitArguments()["tip-of-the-day"];