libretro / RetroArch

Cross-platform, sophisticated frontend for the libretro API. Licensed GPLv3.
http://www.libretro.com
GNU General Public License v3.0
10.28k stars 1.83k forks source link

[PSP] ms0: and ef0: on PSP GO #6550

Open DocMAX opened 6 years ago

DocMAX commented 6 years ago

RetroArch tries to load retroarch.cfg from ms0: instead of ef0:

DocMAX commented 6 years ago

anyone?

RobLoach commented 6 years ago

I don't have a PSP, so I can't effectively test this. Pushed up a quick change over at https://github.com/libretro/RetroArch/pull/6599 .

shoddydev commented 6 years ago

hello. I ran into this problem today while trying to run Retroarch on the PSP Go. I found a way around it. You can use a Hex Editor such as HXD, load up the 81_libretro.pbp core in it and search for the ms0 string. You will have to modify the values of ms (6d 73) to ef which is 65 66. Search for all instances of ms0 and change it to ef0. there should be 3 instances. Then you do that for all the other cores too or just the emulator you want to run. Like if you just want to test a Sega CD game, just modify the picodrive core.

cazrep commented 5 years ago

hello. I ran into this problem today while trying to run Retroarch on the PSP Go. I found a way around it. You can use a Hex Editor such as HXD, load up the 81_libretro.pbp core in it and search for the ms0 string. You will have to modify the values of ms (6d 73) to ef which is 65 66. Search for all instances of ms0 and change it to ef0. there should be 3 instances. Then you do that for all the other cores too or just the emulator you want to run. Like if you just want to test a Sega CD game, just modify the picodrive core.

This solved my issue when trying to get TempGBA working. Great suggestion. I will also add that I am also using a PSP GO and the default save directory in Retro Arch for PSP 1.7.7 is still ms0 instead of the required ef0 for this generation of devices. This is noticed when trying to save the configuration files in the interface and an error with display at the top of the screen "Failed to save in ms0:"

redthing1 commented 2 years ago

I also have this issue.

andreigrigoruta commented 2 years ago

Also have this issue, it tries to save to ms0 instead of ef0. Running latest build.

LibretroAdmin commented 2 years ago

@fjtrujy Any ideas here?

fjtrujy commented 2 years ago

This is still happening, RA has hardcoded the path ms0 for loading by default the RA config. I don’t have a PSP go, and actually I never used the elf0 unit.

I don’t know if there is a runtime way of getting the proper unit where the configuration need to be saved/loaded

let’s keep the issue open

VorgonBattlecruiser commented 1 year ago

Exactly the same thing is happening to me on RA 1.15.0. Cant save my configuration without an expandable storage card.

MateusBMP commented 7 months ago

The ARK-4 project use some specific bits to detect the current device:

image

But, in a more specific case, we can use the function sceIoOpen with the PSPSDK to check if the file exists:

image

We can check, in some step, if ms0:/PSP/RETROARCH/ exists and, if not, change to ef0:/PSP/RETROARCH/:

image

Or we can check the current device to use ms0 or ef0, but I think it's less efficient.