From 866f388e497f5f212e6da8ebfd8184ae70129b89 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Fri, 15 Dec 2023 21:47:50 +0100 Subject: [PATCH] MAME (SA): enhanced configs --- emu-configs/mame/mame.ini | 4 ++-- emu-configs/mame/ui.ini | 4 ++-- functions/prepare_emulator.sh | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/emu-configs/mame/mame.ini b/emu-configs/mame/mame.ini index 1e7e0c40..7ebb9ec0 100644 --- a/emu-configs/mame/mame.ini +++ b/emu-configs/mame/mame.ini @@ -8,10 +8,10 @@ writeconfig 0 # CORE SEARCH PATH OPTIONS # homepath /var/config/mame -rompath /home/deck/retrodeck/roms/arcade +rompath RETRODECKROMSDIR hashpath /app/share/mame/hash samplepath /app/share/mame/samples -artpath $HOME/retrodeck/downloaded_media/arcade/screenshots/ +artpath RETRODECKHOMEDIR/downloaded_media/arcade/screenshots/ ctrlrpath /app/share/mame/ctrlr inipath /var/config/mame fontpath /app/bin/ diff --git a/emu-configs/mame/ui.ini b/emu-configs/mame/ui.ini index db76cbf3..5955d68a 100644 --- a/emu-configs/mame/ui.ini +++ b/emu-configs/mame/ui.ini @@ -9,7 +9,7 @@ pcbs_directory pcb flyers_directory flyers titles_directory titles ends_directory ends -marquees_directory marquees;$HOME/retrodeck/downloaded_media/arcade/marquees +marquees_directory marquees;RETRODECKHOMEDIR/downloaded_media/arcade/marquees artwork_preview_directory "artwork preview;artpreview" bosses_directory bosses logos_directory logo @@ -19,7 +19,7 @@ gameover_directory gameover howto_directory howto select_directory select icons_directory icons -covers_directory covers;$HOME/retrodeck/downloaded_media/arcade/covers +covers_directory covers;RETRODECKHOMEDIR/downloaded_media/arcade/covers ui_path ui # diff --git a/functions/prepare_emulator.sh b/functions/prepare_emulator.sh index 82eb252d..600a4d7f 100644 --- a/functions/prepare_emulator.sh +++ b/functions/prepare_emulator.sh @@ -709,6 +709,8 @@ prepare_emulator() { mkdir -p "/var/config/mame" cp -fvr "$emuconfigs/mame/**" "/var/config/mame" + sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/gzdoom/*.ini" + sed -i 's#RETRODECKHOMESDIR#'$rdhome'#g' "/var/config/gzdoom/*.ini" fi