From fa77d81813370f49da8d30250c36a4a330fa88ab Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Fri, 19 Oct 2018 21:35:52 -0400 Subject: [PATCH] Corrects test for whether to consider a European or American region. --- Analyser/Static/Sega/StaticAnalyser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Analyser/Static/Sega/StaticAnalyser.cpp b/Analyser/Static/Sega/StaticAnalyser.cpp index 56c2c4663..42fea5b2f 100644 --- a/Analyser/Static/Sega/StaticAnalyser.cpp +++ b/Analyser/Static/Sega/StaticAnalyser.cpp @@ -50,7 +50,7 @@ Analyser::Static::TargetList Analyser::Static::Sega::GetTargets(const Media &med case 4: { std::string lowercase_name = file_name; std::transform(lowercase_name.begin(), lowercase_name.end(), lowercase_name.begin(), ::tolower); - if(lowercase_name.find("(jp)") != std::string::npos) { + if(lowercase_name.find("(jp)") == std::string::npos) { target->region = (lowercase_name.find("(us)") == std::string::npos && lowercase_name.find("(ntsc)") == std::string::npos) ? Target::Region::Europe : Target::Region::USA;