1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-25 03:32:01 +00:00

Corrects test for whether to consider a European or American region.

This commit is contained in:
Thomas Harte 2018-10-19 21:35:52 -04:00
parent f0b6c406ff
commit fa77d81813

View File

@ -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;