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

Fix MBC2 data saving (F-1 Race, Kirby's Pinball Land, etc.) #460

Merged
merged 1 commit into from
Aug 29, 2023

Conversation

saulfabregwiivc
Copy link
Contributor

@saulfabregwiivc saulfabregwiivc commented Aug 29, 2023

Today i've just KO'ed the MBC2 savedata saving issue that was also plaguing VBA-GX, exactly like MBC7 until a day ago.

The old MBC2 saving routine based on gbMemory caused the savedata generated/stored on mapper MBC2 to not saved/stored correctly.

The affected games by this includes F-1 Race (Grand Prix mode progress), Kirby's Pinball Land (high scores), etc.

This fixes said issue, by replacing the save routine from gbMemory to gbRam, like the rest of the mapper saving routines. Also changes the savefile size from 256 kB to 512 kB for avoid saving issues with all MBC2 games.

Based on my MBC7 saving fix 51702bb, which is also based in the same fix by Steelskin.

The old MBC2 saving routine based on gbMemory the savedata generated/stored on mapper MBC2 to not save correctly.

The affected games by this includes F-1 Race, Kirby's Pinball Land, etc.

This fixes said issue, by replacing the save routine from gbMemory to gbRam, like the other mapper saving routines. Also changes the savefile size to 512 kB for avoid saving issues with all MBC2 games.

Based on the same fix by Steelskin.
@dborth
Copy link
Owner

dborth commented Aug 29, 2023

You're on a roll!

@dborth dborth merged commit 8b49ff3 into dborth:master Aug 29, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants