File tree Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Expand file tree Collapse file tree 2 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -172,10 +172,19 @@ function configure_ppsspp() {
172
172
fi
173
173
174
174
mkRomDir " psp"
175
- moveConfigDir " $home /.config/ppsspp" " $md_conf_root /psp"
176
- mkUserDir " $md_conf_root /psp/PSP"
177
- ln -snf " $romdir /psp" " $md_conf_root /psp/PSP/GAME"
175
+ if [[ " $md_mode " == " install" ]]; then
176
+ moveConfigDir " $home /.config/ppsspp" " $md_conf_root /psp"
177
+ mkUserDir " $md_conf_root /psp/PSP"
178
+ ln -snf " $romdir /psp" " $md_conf_root /psp/PSP/GAME"
179
+ fi
178
180
179
181
addEmulator 0 " $md_id " " psp" " pushd $md_inst ; $md_inst /PPSSPPSDL ${extra_params[*]} %ROM%; popd"
180
182
addSystem " psp"
183
+
184
+ # if we are removing the last remaining psp emu - remove the symlink
185
+ if [[ " $md_mode " == " remove" ]]; then
186
+ if [[ -h " $home /.config/ppsspp" && ! -f " $md_conf_root /psp/emulators.cfg" ]]; then
187
+ rm -f " $home /.config/ppsspp"
188
+ fi
189
+ fi
181
190
}
Original file line number Diff line number Diff line change @@ -48,9 +48,16 @@ function configure_lr-ppsspp() {
48
48
# the core needs a save file directory, use the same folder as standalone 'ppsspp'
49
49
iniConfig " = " " " " $configdir /psp/retroarch.cfg"
50
50
iniSet " savefile_directory" " $home /.config/ppsspp"
51
- mkUserDir " $home /.config/ppsspp"
51
+ moveConfigDir " $home /.config/ppsspp" " $md_conf_root /psp "
52
52
fi
53
53
54
54
addEmulator 1 " $md_id " " psp" " $md_inst /ppsspp_libretro.so"
55
55
addSystem " psp"
56
+
57
+ # if we are removing the last remaining psp emu - remove the symlink
58
+ if [[ " $md_mode " == " remove" ]]; then
59
+ if [[ -h " $home /.config/ppsspp" && ! -f " $md_conf_root /psp/emulators.cfg" ]]; then
60
+ rm -f " $home /.config/ppsspp"
61
+ fi
62
+ fi
56
63
}
You can’t perform that action at this time.
0 commit comments