profi200 / open_agb_firm

open_agb_firm is a bare metal app for running GBA homebrew/games using the 3DS builtin GBA hardware.
GNU General Public License v3.0
930 stars 46 forks source link

PocketNES doesn't save. #60

Open yokuma123 opened 2 years ago

yokuma123 commented 2 years ago

PocketNES doesn't save.

It would be so nice if you could take time to fix the issue. I want to use load and save states.

https://www.dwedit.org/gba/pocketnes.php

profi200 commented 2 years ago

I have not tried it yet but if it needs more than 32 KiB (256 kilobits) of SRAM it will never work because the hardware doesn't support more SRAM.

I would highly recommend looking into the other NES emulator options for 3DS. They give you a far better experience.

edit: I tried it out with Super Mario Bros. 3. That game doesn't seem to save anything? But save states do work if you select SRAM as save type.

yokuma123 commented 2 years ago

I checked /3ds/open_agb_firm/config.ini and saw 14: SRAM 256k is set in Advanced. So I think pocketnes save type is already set to SRAM. But after rebooting 3DS, all saved states are erased. What else should I try? Should I create romName.ini and add something?

profi200 commented 2 years ago

I don't know what's the issue to be honest. It worked in my test. I can only recommend using the ROM manager that comes with this emulator and avoid packing too many games into 1 ROM because, as mentioned, there is only 32 KiB of SRAM instead of 64 or 128.

yokuma123 commented 2 years ago

So I tried Super Mario Bros. 3 and PocketNES.gba stored saved states.

I also tried Super Mario Bros. 1 and PocketNES.gba could not store saved states of Super Mario Bros. 1. All saved states were lost after 3DS rebooted.

Perhaps Super Mario Bros. 1 did not have SRAM so that is why pocketNES loses the saved states. I think Super Mario Bros. 3 had SRAM.

If I do the same tests on Boycott Advance, the results are same. Super Mario Bros. 1 saved states were lost. But Super Mario Bros. 3 saved states remained. If I do the same tests on EZ-Flash IV, EZ-Flash IV never lose saved states of Super Mario Bros. 1. and Super Mario Bros. 3