From 45b862bd2db7d55d5eac9ac99f033c989eb839b1 Mon Sep 17 00:00:00 2001 From: XargonWan Date: Sun, 17 Dec 2023 10:45:06 +0100 Subject: [PATCH] GZDOOM: fixed parser that was passing an empty -file argument --- emu-configs/gzdoom/gzdoom.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/emu-configs/gzdoom/gzdoom.sh b/emu-configs/gzdoom/gzdoom.sh index 6e9f4617..3ef570f6 100644 --- a/emu-configs/gzdoom/gzdoom.sh +++ b/emu-configs/gzdoom/gzdoom.sh @@ -29,7 +29,7 @@ extension="${filename##*.}" # Extracts the file extension if [ "$extension" == "doom" ]; then map_file="$1" iwad="-iwad $(head -n 1 "$map_file")" - file="-file $(tail -n +2 "$map_file" | sed 's/.*/-file &/')" + file="$(tail -n +2 "$map_file" | sed 's/.*/-file &/')" echo "Found a .doom file: $1, parsing it." | tee -a "$LOG_FILE" echo "Calling GZDoom with: \"$iwad $file\"." | tee -a "$LOG_FILE" @@ -44,5 +44,5 @@ else 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 -$type "$1" | tee -a "$LOG_FILE" + gzdoom -config /var/config/gzdoom/gzdoom.ini $iwad $file | tee -a "$LOG_FILE" fi