MAME: config paths fixes

This commit is contained in:
XargonWan 2024-02-28 10:17:03 +01:00
parent fe0cde2b79
commit 2b85d32e9e
2 changed files with 5 additions and 4 deletions

View file

@ -115,7 +115,8 @@ vita3kusrconfdir="$bios_folder/Vita3K/Vita3K"
# MAME-SA config files
mameconf="/var/config/mame/mame.ini"
mameuiconf="$bios_folder/Vita3K/ui.ini"
mameuiconf="/var/config/mame/ui.ini"
mamedefconf="/var/config/mame/cfg/default.cfg"
# We moved the lockfile in /var/config/retrodeck in order to solve issue #53 - Remove in a few versions
if [[ -f "$HOME/retrodeck/.lock" ]]; then

View file

@ -757,9 +757,9 @@ prepare_component() {
mkdir -p "/var/data/mame/assets/ui"
dir_prep "$saves_folder/mame-sa/hiscore" "/var/config/mame/hiscore"
cp -fvr "$emuconfigs/mame/mame.ini" "/var/config/mame/cfg"
cp -fvr "$emuconfigs/mame/ui.ini" "/var/config/mame/cfg"
cp -fvr "$emuconfigs/mame/default.cfg" "/var/config/mame/cfg"
cp -fvr "$emuconfigs/mame/mame.ini" "$mameconf"
cp -fvr "$emuconfigs/mame/ui.ini" "$mameuiconf"
cp -fvr "$emuconfigs/mame/default.cfg" "$mamedefconf"
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "$mameconf" # one-off as roms folders are a lot
set_setting_value "$mameconf" "nvram_directory" "$saves_folder/mame-sa/nvram" "mame"