Skip to content

Commit 747fc75

Browse files
committed
lr-ppsspp: preset a save directory
`lr-ppsspp` uses the `savefile_directory` path in order to create its own save structure. Game saves are not regular `.srm` files, but they're saved in a `PSP/SAVEDATA/<GAME_ID>` folder structure. Without setting a `savefile_directory`, the core will try to save to `/PSP/SAVEDATA/<GAME_ID>`, which obviously fails. Setting this to `$HOME/.config/ppsspp` makes it possible to share the savedata with the standalone emulator.
1 parent 037b49e commit 747fc75

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scriptmodules/libretrocores/lr-ppsspp.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ function configure_lr-ppsspp() {
4444
mkUserDir "$biosdir/PPSSPP"
4545
cp -Rv "$md_inst/assets/"* "$biosdir/PPSSPP/"
4646
chown -R $user:$user "$biosdir/PPSSPP"
47+
48+
# the core needs a save file directory, use the same folder as standalone 'ppsspp'
49+
iniConfig " = " "" "$configdir/psp/retroarch.cfg"
50+
iniSet "savefile_directory" "$home/.config/ppsspp"
51+
mkUserDir "$home/.config/ppsspp"
4752
fi
4853

4954
addEmulator 1 "$md_id" "psp" "$md_inst/ppsspp_libretro.so"

0 commit comments

Comments
 (0)