mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 21:47:40 -05:00
fix: std::u8string usage with nlohmann::json
This commit is contained in:
@@ -403,9 +403,9 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
|
||||
{
|
||||
std::vector<std::u8string> recentFilesVector;
|
||||
std::vector<std::string> recentFilesVector;
|
||||
for (const auto &recentPath : s_recentFilePaths)
|
||||
recentFilesVector.push_back(recentPath.u8string());
|
||||
recentFilesVector.push_back(recentPath.string());
|
||||
|
||||
ContentRegistry::Settings::write("hex.builtin.setting.imhex", "hex.builtin.setting.imhex.recent_files", recentFilesVector);
|
||||
}
|
||||
@@ -450,7 +450,7 @@ namespace hex::plugin::builtin {
|
||||
}
|
||||
}
|
||||
|
||||
for (const auto &pathString : ContentRegistry::Settings::read("hex.builtin.setting.imhex", "hex.builtin.setting.imhex.recent_files", std::vector<std::u8string>{ })) {
|
||||
for (const auto &pathString : ContentRegistry::Settings::read("hex.builtin.setting.imhex", "hex.builtin.setting.imhex.recent_files")) {
|
||||
std::fs::path path = std::u8string(pathString.begin(), pathString.end());
|
||||
if (fs::exists(path))
|
||||
s_recentFilePaths.emplace_back(path);
|
||||
|
||||
Reference in New Issue
Block a user