MAME (SA): added save folder location

This commit is contained in:
XargonWan 2023-12-16 09:04:50 +01:00
parent 4cefc83d3c
commit 3201de0804
2 changed files with 3 additions and 1 deletions

View file

@ -27,7 +27,7 @@ swpath /app/share/mame/software
cfg_directory /var/config/mame/cfg
nvram_directory /var/config/mame/nvram
input_directory /var/config/mame/inp
state_directory /var/config/mame/sta
state_directory RETRODECKSAVESDIR/mame-sa
snapshot_directory RETRODECKHOMEDIR/screenshots
diff_directory /var/config/mame/diff
comment_directory /var/config/mame/comments

View file

@ -708,10 +708,12 @@ prepare_emulator() {
echo "Initializing MAME"
echo "----------------------"
mkdir -p $saves_folder/mame-sa
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"
sed -i 's#RETRODECKSAVESDIR#'$rdhome'#g' "/var/config/gzdoom/*.ini"
fi