GZDOOM: reset script

This commit is contained in:
XargonWan 2023-11-24 14:02:50 +01:00
parent bc029d88a5
commit 13720e8ead

View file

@ -722,7 +722,12 @@ prepare_emulator() {
echo "----------------------" echo "----------------------"
mkdir -p "/var/config/gzdoom" mkdir -p "/var/config/gzdoom"
mkdir -p "/var/data/gzdoom"
cp -fvr "$emuconfigs/gzdoom/gzdoom.ini" "/var/config/gzdoom" cp -fvr "$emuconfigs/gzdoom/gzdoom.ini" "/var/config/gzdoom"
cp -fvr "$emuconfigs/gzdoom/gzdoom.pk3" "/var/data/gzdoom"
sed -i 's#RETRODECKROMSDIR#'$roms_folder'#g' "/var/config/gzdoom/gzdoom.ini" # This is an unfortunate one-off because set_setting_value does not currently support JSON
sed -i 's#RETRODECKSAVESDIR#'$saves_folder'#g' "/var/config/gzdoom/gzdoom.ini" # This is an unfortunate one-off because set_setting_value does not currently support JSON
fi fi