From c9aee5cf926c196f60976f65e8e0a3d43e14380a Mon Sep 17 00:00:00 2001 From: XargonWan Date: Mon, 18 Dec 2023 11:40:07 +0100 Subject: [PATCH] GZDOOM: wrapper fixes --- emu-configs/gzdoom/gzdoom.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/emu-configs/gzdoom/gzdoom.sh b/emu-configs/gzdoom/gzdoom.sh index 3ef570f6..00a0549c 100644 --- a/emu-configs/gzdoom/gzdoom.sh +++ b/emu-configs/gzdoom/gzdoom.sh @@ -33,16 +33,17 @@ if [ "$extension" == "doom" ]; then echo "Found a .doom file: $1, parsing it." | tee -a "$LOG_FILE" echo "Calling GZDoom with: \"$iwad $file\"." | tee -a "$LOG_FILE" - gzdoom -config /var/config/gzdoom/gzdoom.ini $iwad $file | tee -a "$LOG_FILE" else shopt -s nocasematch # Enable case-insensitive matching if [[ "${IWAD_FILES[@]}" =~ "$filename" ]]; then type="iwad" + iwad="-iwad $1" else type="file" + file="-file $1" fi shopt -u nocasematch # Disable case-insensitive matching after use - echo "Found $type: $1, loading it." | tee -a "$LOG_FILE" - gzdoom -config /var/config/gzdoom/gzdoom.ini $iwad $file | tee -a "$LOG_FILE" fi + +gzdoom -config /var/config/gzdoom/gzdoom.ini $iwad $file | tee -a "$LOG_FILE"