From 5dfa0afe1fdbd914757f15698e1ef672123a226c Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Wed, 31 Jul 2024 16:33:48 -0400 Subject: [PATCH] First attempt at updating custom game scripts to use the new directory layout. Operation mdk with Project Brutality the only one so far. --- .../Project_Brutality_Operation_MDK.sh | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh index 3f135de..5a31466 100755 --- a/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh +++ b/.scripts/TobyCustom/Project_Brutality_Operation_MDK.sh @@ -3,20 +3,21 @@ # Set the current path to the Doom path required by some OS. pushd "${doomPath}" +gamePath=~/.local/games/doom # Set up the pk3 and wad files gameOption=( - "${doomPath}/TobyAccMod_V${tobyVersion}.pk3" - "${doomPath}/PB-Toby-Compatibility-Addon.pk3" - "${doomPath}/Toby-Universal-Pickup-Beacon-Prototype.pk3" - "${doomPath}/OpMDK.wad" - "$(find /usr/share/games/ -name 'Project_Brutality-master.pk3')" + "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" + "${gamePath}/PB-Toby-Compatibility-Addon.pk3" + "${gamePath}/Toby-Universal-Pickup-Beacon-Prototype.pk3" + "${gamePath}/OpMDK.wad" + "$(find /usr/share/games/ -name 'Project_Brutality-master.pk3' -o \( -path "$gamePath/*" -type f \))" ) # Check for and include if present a wad. Some people may not have it. -if [[ -e "${doomPath}/DoomMetalVol7.wad" ]]; then - gameOption+=("${doomPath}/DoomMetalVol7.wad") -elif [[ -e "${doomPath}/DoomMetalVol6.wad" ]]; then - gameOption+=("${doomPath}/DoomMetalVol6.wad") +if [[ -e "${gamePath}/DoomMetalVol7.wad" ]]; then + gameOption+=("${gamePath}/DoomMetalVol7.wad") +elif [[ -e "${gamePath}/DoomMetalVol6.wad" ]]; then + gameOption+=("${gamePath}/DoomMetalVol6.wad") fi # Source common variable extensions.