From e12131a55854d1a8d5f1d090090002a0b64aa10d Mon Sep 17 00:00:00 2001 From: XargonWan Date: Wed, 13 Mar 2024 08:55:21 +0100 Subject: [PATCH] GZDOOM: path fixing + adding bios folder --- emu-configs/gzdoom/gzdoom.ini | 8 +++++--- functions/prepare_component.sh | 4 +++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/emu-configs/gzdoom/gzdoom.ini b/emu-configs/gzdoom/gzdoom.ini index 36a078c7..5dbbe463 100644 --- a/emu-configs/gzdoom/gzdoom.ini +++ b/emu-configs/gzdoom/gzdoom.ini @@ -15,19 +15,21 @@ Path=/app/share/games/doom/ [FileSearch.Directories] Path=$PROGDIR Path=$DOOMWADDIR -Path=/var/config/gzdoom Path=RETRODECKROMSDIR/doom +Path=RETRODECKROMSDIR/bios/gzdoom Path=/app/share/games/doom/ +Path=/var/config/gzdoom # These are the directories to search for soundfonts that let listed in the menu. # Layout is the same as for IWADSearch.Directories [SoundfontSearch.Directories] Path=$PROGDIR/soundfonts Path=$PROGDIR/fm_banks -Path=/var/data/gzdoom/audio -Path=/var/data/gzdoom +Path=RETRODECKROMSDIR/bios/gzdoom Path=/app/share/games/doom/soundfonts Path=/app/share/games/doom/fm_banks +Path=/var/data/gzdoom/audio +Path=/var/data/gzdoom # Files to automatically execute when running the corresponding game. # Each file should be on its own line, preceded by Path= diff --git a/functions/prepare_component.sh b/functions/prepare_component.sh index c7cb19b4..803d286d 100644 --- a/functions/prepare_component.sh +++ b/functions/prepare_component.sh @@ -777,7 +777,9 @@ prepare_component() { log i "----------------------" create_dir "/var/config/gzdoom" - create_dir "/data/gzdoom/audio/midi" + create_dir "/var/data/gzdoom/audio/midi" + create_dir "$rdhome/bios/gzdoom" + cp -fvr "$emuconfigs/gzdoom/gzdoom.ini" "/var/config/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