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.