mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
allow ALL = true
then gameID = false
blacklisting
This commit is contained in:
parent
3287c268ff
commit
030a031943
1 changed files with 4 additions and 2 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue