budude2 / openfpga-GBC

193 stars 5 forks source link

Original GB Core Not Creating Initial Game Saves, But GBC Core Can #48

Closed adam1book closed 1 month ago

adam1book commented 3 months ago

I installed the GB and GBC color cores (v1.2.0, latest release) through Pocket Updater (v1.6.0). I copied ROMs from an Everdrive GB X7 into the appropriate folders. When testing saving new games through both the GB and GBC cores so I could tell the save file format to use (since I need to convert the Everdrive saves), I noticed that only the GBC core will save a game for the first time. The GB core will only save games after the GBC core has created the initial save; if the GBC core has not created a game save at least once, the GB core never creates a save folder or file. I tested with both "Kirby's Pinball Land (USA, Europe)" and "Final Fantasy Adventure (World) (Collection of Mana)".

Seems like some kind of permissions issue which the GBC core handles correctly but the GB core does not. I already verified that the newly created save files and the folders they are in are not set to read-only on the microSD card on a Windows computer. Let me know if there's any more info I can provide.

nlhomme commented 2 months ago

I noticed that only the GBC core will save a game for the first time. The GB core will only save games after the GBC core has created the initial save; if the GBC core has not created a game save at least once, the GB core never creates a save folder or file.

Hello, I confirm I am encountering that exact same issue on my Analogue Pocket

TomJinW commented 2 months ago

I have the exact same problem too.

Oddly enough what I am working on is a custom ROM which requires MBC30 to run. The GB Core can only create 32KiB of saves whereas the GBC Core can create the 64KiB save as it should required by MBC30. After creating the right size of the save file by the GBC Core, the GB core can save the game correctly.

jakubito commented 1 month ago

Experiencing the same issue with Tetris - Rosy Retrospection romhack. Creating the initial save with GBC core helped 👍

spikeyxx commented 1 month ago

Having this too. GB core cannot save initial saves, but can save correctly if a save is already present. I.e. generated by GBC core.