From 47e383b1baa00cd5b6c160086bb576d0f60572ef Mon Sep 17 00:00:00 2001 From: saulfabreg Wii VC Project Date: Thu, 25 Apr 2024 19:26:08 -0500 Subject: [PATCH] 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. https://github.com/snes9xgit/snes9x/commit/84ac9475675423be3b3577dfc39db7c44eb7f5a0 * Zero SRAM fix for Super Formation Soccer 95 - della Serie A. (bearoso) https://github.com/snes9xgit/snes9x/commit/7943dfa126ef78b7a4f9161e9542c58168a53b4f * Another SRAM value fix. Fixes Nichibutsu Arcade Classics. https://github.com/snes9xgit/snes9x/commit/c325cbc2f6d1b4f54f503754a8b8ecdd78d9ad5d --- source/snes9x/memmap.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/snes9x/memmap.cpp b/source/snes9x/memmap.cpp index c2d8dc4..6cf0495 100644 --- a/source/snes9x/memmap.cpp +++ b/source/snes9x/memmap.cpp @@ -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; @@ -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")) @@ -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;