First attempt at updating custom game scripts to use the new directory layout. Operation mdk with Project Brutality the only one so far.
This commit is contained in:
parent
cc5daa3988
commit
5dfa0afe1f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user