MrPalloncini / PicoMemcard

Emulating PSX Memory Card (or controller) using a Raspberry Pi Pico
GNU General Public License v3.0
3 stars 0 forks source link

Bitfunx memcardpro+ v1.0.3 with Game ID support issue with LastMemcardIndex.dat. #1

Closed whitezombie2000 closed 23 hours ago

whitezombie2000 commented 1 week ago

Using the Xstation with an NTSC SCPH-5501, after a power cycle, or if you unplug the card during gameplay, it will not load the last memory card used. It doesn't seem to honor the LastMemcardIndex.dat. It will keep starting memory card 9 if you go to the memory card manager or if you unplug the memory card during gameplay. This doesn't affect launching a new game session as it will load your memory card if it exists in the index.txt file.

If I delete memory card 9 then it will default to memory card 1 upon a new power cycle when going to the memory card manager or reinserting during gameplay. I had about 20 memory cards created when testing.

The fork by realJoshByrnes doesn't have this issue (doesn't have game ID support but implemented LastMemcardIndex.dat), and will always honor the LastMemcardIndex.dat after a power cycle, or if you unplug it during gameplay, and will load the last memory card used.

https://github.com/dangiu/PicoMemcard/issues/40#issuecomment-1482388229

Capture1

MrPalloncini commented 5 days ago

This need a lot of debugging, i think i will need to reimement everything inside the index.txt file and also rewrite the enitre cose that order the memcards in decimal order instead of alphabetical

whitezombie2000 commented 5 days ago

No worries, appreciate your work! But yeah, LastMemcardIndex.dat doesn't update when switching memory cards. It will update if you create a brand new card but won't switch if you change to an existing card. If you manually change the number in LastMemcardIndex.dat by opening the file in notepad, saving it, it will load a different card, but it will not load the correct number card due to the firmware sorting alphabetical instead of decimal.

MrPalloncini commented 23 hours ago

Fixed in the next release, i've dropped the .dat file and everything will be inside the index.txt, make sure the first line will be LASTMEMCARD:X.MCR. Also i dropped the ordering since it wasn't needed. now the application knows the position based on the loaded mcr file, which of course is faster and better. If there are any more issues, feel free to open again or open a new one after i post the new release