From 55fba7c0ed48b8351231fcf6c42bbf75f2d70fb0 Mon Sep 17 00:00:00 2001
From: iwubcode <iwubcode@users.noreply.github.com>
Date: Mon, 10 Jul 2023 22:28:15 -0500
Subject: [PATCH] VideoCommon/GraphicsModAsset: Error out if config key is not
 a string.

---
 .../VideoCommon/GraphicsModSystem/Config/GraphicsModAsset.cpp    | 1 +
 1 file changed, 1 insertion(+)

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();
   }