Snes9x - memmap.cpp: some more SRAM value fixes hacks and ExtHiROM fixes. (bearoso) (#1088)

* Snes9x - memmap: Fix SD3 Italian translation that uses ExtHiROM. (bearoso)

Lower Mother 2 hack heuristic score to 3.

84ac947567

* Zero SRAM fix for Super Formation Soccer 95 - della Serie A. (bearoso)

7943dfa126

* Another SRAM value fix. Fixes Nichibutsu Arcade Classics.

c325cbc2f6
This commit is contained in:
saulfabreg Wii VC Project 2024-04-25 19:26:08 -05:00 committed by GitHub
parent 71d905ceca
commit 47e383b1ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1132,7 +1132,7 @@ int CMemory::ScoreHiROM (bool8 skip_header, int32 romoff)
// Check for extended HiROM expansion used in Mother 2 Deluxe et al. // Check for extended HiROM expansion used in Mother 2 Deluxe et al.
// Looks for size byte 13 (8MB) and an actual ROM size greater than 4MB // Looks for size byte 13 (8MB) and an actual ROM size greater than 4MB
if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4) if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4)
score += 5; score += 3;
if (buf[0xd5] & 0x1) if (buf[0xd5] & 0x1)
score += 2; score += 2;
@ -3676,6 +3676,7 @@ void CMemory::ApplyROMFixes (void)
if (!Settings.DisableGameSpecificHacks) if (!Settings.DisableGameSpecificHacks)
{ {
// APU timing hacks
if (match_id("AVCJ")) // Rendering Ranger R2 if (match_id("AVCJ")) // Rendering Ranger R2
Timings.APUSpeedup = 4; Timings.APUSpeedup = 4;
if (match_na("CIRCUIT USA")) if (match_na("CIRCUIT USA"))
@ -3778,6 +3779,8 @@ void CMemory::ApplyROMFixes (void)
// SRAM value fixes // SRAM value fixes
if (match_na("SUPER DRIFT OUT") || // Super Drift Out if (match_na("SUPER DRIFT OUT") || // Super Drift Out
match_na("S.F.S.95 della SerieA") ||
match_id("AACJ") || // Nichibutsu Arcade Classics
match_na("SATAN IS OUR FATHER!") || match_na("SATAN IS OUR FATHER!") ||
match_na("goemon 4")) // Ganbare Goemon Kirakira Douchuu match_na("goemon 4")) // Ganbare Goemon Kirakira Douchuu
SNESGameFixes.SRAMInitialValue = 0x00; SNESGameFixes.SRAMInitialValue = 0x00;