Skip to content

Commit

Permalink
Snes9x - memmap.cpp: some more SRAM value fixes hacks and ExtHiROM fi…
Browse files Browse the repository at this point in the history
…xes. (bearoso) (#1088)

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

Lower Mother 2 hack heuristic score to 3.

snes9xgit/snes9x@84ac947

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

snes9xgit/snes9x@7943dfa

* Another SRAM value fix. Fixes Nichibutsu Arcade Classics.

snes9xgit/snes9x@c325cbc
  • Loading branch information
saulfabregwiivc authored Apr 26, 2024
1 parent 71d905c commit 47e383b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source/snes9x/memmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,7 @@ int CMemory::ScoreHiROM (bool8 skip_header, int32 romoff)
// 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
if (buf[0xd7] == 13 && CalculatedSize > 1024 * 1024 * 4)
score += 5;
score += 3;

if (buf[0xd5] & 0x1)
score += 2;
Expand Down Expand Up @@ -3676,6 +3676,7 @@ void CMemory::ApplyROMFixes (void)

if (!Settings.DisableGameSpecificHacks)
{
// APU timing hacks
if (match_id("AVCJ")) // Rendering Ranger R2
Timings.APUSpeedup = 4;
if (match_na("CIRCUIT USA"))
Expand Down Expand Up @@ -3778,6 +3779,8 @@ void CMemory::ApplyROMFixes (void)

// SRAM value fixes
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("goemon 4")) // Ganbare Goemon Kirakira Douchuu
SNESGameFixes.SRAMInitialValue = 0x00;
Expand Down

0 comments on commit 47e383b

Please sign in to comment.