Skip to content

Commit

Permalink
Merge pull request #18411 from Kethen/allow_plugin_blacklist
Browse files Browse the repository at this point in the history
allow `ALL = true` then `gameID = false` blacklisting
  • Loading branch information
hrydgard committed Nov 11, 2023
2 parents b875101 + 030a031 commit 2530bc8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Core/HLE/Plugins.cpp
Expand Up @@ -105,15 +105,17 @@ static std::vector<PluginInfo> FindPlugins(const std::string &gameID, const std:
std::set<std::string> 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()) {
Expand Down

0 comments on commit 2530bc8

Please sign in to comment.