summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/GraphicsModSystem
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2023-07-10 22:28:15 -0500
committerAdmiral H. Curtiss <pikachu025@gmail.com>2023-08-22 02:40:08 +0200
commit55fba7c0ed48b8351231fcf6c42bbf75f2d70fb0 (patch)
tree2b9f63aca56736a68334aa31fdbf3cbe670e549c /Source/Core/VideoCommon/GraphicsModSystem
parentdbe6a5f7e4caca71de9d9ba86916f82c0bc21683 (diff)
VideoCommon/GraphicsModAsset: Error out if config key is not a string.
Diffstat (limited to 'Source/Core/VideoCommon/GraphicsModSystem')
-rw-r--r--Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp
index fb5572b3da..5b3141a283 100644
--- a/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp
+++ b/Source/Core/VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp
@@ -44,6 +44,7 @@ bool GraphicsModAssetConfig::DeserializeFromConfig(const picojson::object& obj)
"Failed to load mod configuration file, specified asset '{}' has data "
"with a value for key '{}' that is not a string",
m_name, key);
+ return false;
}
m_map[key] = value.to_str();
}