Closed zerojay closed 8 years ago
I would venture to guess its along the same lines as this issue: https://github.com/RetroPie/RetroPie-Setup/issues/1162 It would seem a lot of the mednafen (beetle) emulator cores have file path issues (which may possibly be upstream issues unrelated to retropie) Would be interested if you find similar results with the other mednafen emulators (currently there is the virtualboy, an experimental lynx emulator, wonderswan, neogeo pocket, supergrafx, and pce fast)
I can confirm the same issue:
Until it's addressed upstream by RetroArch I have no problem setting the default system config in /opt/retropie/configs/virtualboy/retroarch.cfg
# Settings made here will only override settings in the global retroarch.cfg if placed above the #include line
input_remapping_directory = /opt/retropie/configs/virtualboy/
system_directory = /home/pi/RetroPie/roms/virtualboy
#include "/opt/retropie/configs/all/retroarch.cfg"
as a side note we may also need to add rewind_enable = false
to keep if from crashing with savestates and loadstates see https://github.com/libretro/beetle-vb-libretro/issues/7
I made a quick and dirty setting to the configure function the script to automate placing configs above the #include line, but in order to avoid code duplication we may first have to look at integrating inifunction for system specific retroarch configs on its own (as there are other systems that need system specific configs like lr psx rearmed, and all the mednafen emulators at least until the issues are patched upstream)
function configure_lr-beetle-vb() {
mkRomDir "virtualboy"
ensureSystemretroconfig "virtualboy"
# system-specific, VB
iniConfig " = " "" "$configdir/virtualboy/retroarch.cfg"
iniSet "system_directory" "$romdir/virtualboy"
local include=$(grep "^#include" "$configdir/virtualboy/retroarch.cfg")
sed -i "/^#include/d" "$configdir/virtualboy/retroarch.cfg"
if [[ -n "$include" ]]; then
echo "" >>"$configdir/virtualboy/retroarch.cfg"
echo "$include" >>"$configdir/virtualboy/retroarch.cfg"
fi
addSystem 1 "$md_id" "virtualboy" "$md_inst/mednafen_vb_libretro.so"
}
I would prefer to look into the upstream issue before adding settings to repoint file locations etc.
Sorted upstream
When playing Virtual Boy games using the lr-beetle-vb Libretro core, save game files (*.sav) are not written to the proper save game directory as defined in /opt/retropie/configs/all/retroarch.cfg and are instead written to /home/pi/RetroPie/BIOS/.
Relevant options from configs/all/retroarch.cfg (ROMs and save files are read and written to a CIFS share from a Linux box mounted to /home/pi/RetroPie/roms/, working as expected on other cores perfectly fine):
Full contents of /opt/retropie/configs/virtualboy/retroarch.cfg (untouched from fresh 3.5 install):
The game I'm using to test this out is Galatic Pinball but to my knowledge this isn't game-specific.