From 030a0319434ec87626fcd823f88722f77ae752a8 Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Sat, 11 Nov 2023 20:21:33 +0800 Subject: [PATCH] allow `ALL = true` then `gameID = false` blacklisting --- Core/HLE/Plugins.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Core/HLE/Plugins.cpp b/Core/HLE/Plugins.cpp index 0f5b682a92..90edd6d965 100644 --- a/Core/HLE/Plugins.cpp +++ b/Core/HLE/Plugins.cpp @@ -105,15 +105,17 @@ static std::vector FindPlugins(const std::string &gameID, const std: std::set matches; std::string gameIni; - if (ini.GetOrCreateSection("games")->Get("ALL", &gameIni, "")) { + if (ini.GetOrCreateSection("games")->Get(gameID.c_str(), &gameIni, "")) { if (!strcasecmp(gameIni.c_str(), "true")) { matches.insert("plugin.ini"); + } else if (!strcasecmp(gameIni.c_str(), "false")){ + continue; } else if (!gameIni.empty()) { matches.insert(gameIni); } } - if (ini.GetOrCreateSection("games")->Get(gameID.c_str(), &gameIni, "")) { + if (ini.GetOrCreateSection("games")->Get("ALL", &gameIni, "")) { if (!strcasecmp(gameIni.c_str(), "true")) { matches.insert("plugin.ini"); } else if (!gameIni.empty()) {