Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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