mgba-emu / mgba

mGBA Game Boy Advance Emulator
https://mgba.io/
Mozilla Public License 2.0
5.57k stars 765 forks source link

MGBA x PS Vita, Games files not saving. #2951

Open Ray12334 opened 1 year ago

Ray12334 commented 1 year ago

I have the mGBA on my PS Vita and I have Pokémon fire red playable.

However when I go to save the file, it does not save whatsoever.

Wondering for a fix for this.

Thanks :)

Hazard-Hat commented 11 months ago

Bump, I saved in Metroid Zero Mission, Mario & Luigi and Mario VS DK, and it saves fine, but when I exit and boot the game again the saves are gone, most likely not producing a sav. file for some reason.

Save states don't work on GBA games at all for some reason either (they work on GB and GBC games), so with GBA I am stuck with a single game to play, any exit to play anything else and all the progress is gone...

endrift commented 11 months ago

For whatever reason, the ROMs need to be in or under ux0:/data. I don't know why this is the case, but if you put them there it works fine.

Hazard-Hat commented 11 months ago

For whatever reason, the ROMs need to be in or under ux0:/data. I don't know why this is the case, but if you put them there it works fine.

Thank you so much!

It seems to only works in the data folder, if it's in a folder, in the data-folder it doesn't work either. Weirdest bug I've ever seen, some games like Pokemon and Kirby did save for me in the original location (outside data), which is even weirder. Perhaps mGBA for Vita has problems with certain save formats and sizes? If that's possible at all.

EDIT: If anyone is worried about cluttering their data folder, put "GBA - (game name)" so they all would show after another than being divided by other files, if your data folder has other files that is.

LeannAlexandra commented 11 months ago

ux0:/data.

Some extra info to fill the blank

'ux0:data/' in './src/core/config.c' at line 251 I would not want to test if it works without it: chatGPT (the free 3.5 version) says:

_it appears that in the context of working with PSP2, the code you provided is creating a directory under "ux0:data/" with a path specified by concatenating "ux0:data/" and the content of the projectName variable.

So, you should leave the "ux0:data/" portion in the path to ensure that the directory is created in the correct location under "ux0:data/". This is a common practice in file systems with specific directory structures to ensure that your data is organized correctly, and it's likely a requirement or convention for PSP2 development._

again, if it works: leave "well enough" alone.