From 2376ab2d3801283054f07984e1e853346839cb09 Mon Sep 17 00:00:00 2001 From: remutro Date: Sun, 19 Jan 2025 11:55:05 -0500 Subject: [PATCH 1/2] Force PAL region when (PAL) or (Europe) are in ROM name --- mia/medium/mega-32x.cpp | 11 +++++++++++ mia/medium/mega-drive.cpp | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/mia/medium/mega-32x.cpp b/mia/medium/mega-32x.cpp index c49a7d29eb..534ea044e6 100644 --- a/mia/medium/mega-32x.cpp +++ b/mia/medium/mega-32x.cpp @@ -143,6 +143,17 @@ auto Mega32X::analyze(vector& rom) -> string { regions.append("NTSC-J", "NTSC-U", "PAL"); } + // FIFA Soccer 96 and Mortal Kombat II have an incorrect header, so force PAL based on name + if(location.ifind("(Europe)") || location.ifind("(PAL)")) { + regions.reset(); + regions.append("PAL"); + } + + //Shadow Squadron - Stellar Assualt is missing NTSC-U region + if(hash == "2f9b6017258fbb1c37d81df07c68d5255495d3bf76d9c7b680ff66bccf665750") { + regions.append("NTSC-U"); + } + string domesticName; domesticName.resize(48); memory::copy(domesticName.get(), &rom[0x0120], domesticName.size()); diff --git a/mia/medium/mega-drive.cpp b/mia/medium/mega-drive.cpp index 44456714c2..d61ada7ee6 100644 --- a/mia/medium/mega-drive.cpp +++ b/mia/medium/mega-drive.cpp @@ -280,8 +280,8 @@ auto MegaDrive::analyzeRegion(vector& rom, string hash) -> void { regions.append("NTSC-J", "NTSC-U", "PAL"); } - //Alisia Dragoon (Europe) - if(hash == "0930b77d0474e99c10690245cac12a6618b6c16420e3575379aba6e715ea797a") { + // Many PAL games have incorrect headers, so force PAL based on name + if(location.ifind("(Europe)") || location.ifind("(PAL)")) { regions.reset(); regions.append("PAL"); } From 7221debde36714583717a433cd7d0dd1c3439182 Mon Sep 17 00:00:00 2001 From: remutro Date: Sun, 19 Jan 2025 12:13:03 -0500 Subject: [PATCH 2/2] Spelling Assult wrong in comment would haunt me --- mia/medium/mega-32x.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mia/medium/mega-32x.cpp b/mia/medium/mega-32x.cpp index 534ea044e6..2ddc927980 100644 --- a/mia/medium/mega-32x.cpp +++ b/mia/medium/mega-32x.cpp @@ -149,7 +149,7 @@ auto Mega32X::analyze(vector& rom) -> string { regions.append("PAL"); } - //Shadow Squadron - Stellar Assualt is missing NTSC-U region + //Shadow Squadron - Stellar Assault is missing NTSC-U region in header if(hash == "2f9b6017258fbb1c37d81df07c68d5255495d3bf76d9c7b680ff66bccf665750") { regions.append("NTSC-U"); }