mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-04-02 13:37:42 -05:00
impr: Better JSON error handling in many places
This commit is contained in:
@@ -217,7 +217,7 @@ namespace hex::plugin::builtin {
|
||||
void FileProvider::loadSettings(const nlohmann::json &settings) {
|
||||
Provider::loadSettings(settings);
|
||||
|
||||
auto pathString = settings["path"].get<std::string>();
|
||||
auto pathString = settings.at("path").get<std::string>();
|
||||
std::fs::path path = std::u8string(pathString.begin(), pathString.end());
|
||||
|
||||
if (auto projectPath = ProjectFile::getPath(); !projectPath.empty())
|
||||
|
||||
Reference in New Issue
Block a user