From 0f65d8efb9f602a2e88e9b89a154bede844ce9e7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 1 Sep 2024 15:02:54 -0400 Subject: [PATCH] Added dependency checking for Project Brutality because some people reinstall without clearing the cache and get the older version of the zip file. --- .scripts/TobyCustom/Project_Brutality.sh | 8 ++++++++ .scripts/TobyCustom/Project_BrutalityLatest.sh | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/.scripts/TobyCustom/Project_Brutality.sh b/.scripts/TobyCustom/Project_Brutality.sh index 3e36dbe..b4c2e3a 100755 --- a/.scripts/TobyCustom/Project_Brutality.sh +++ b/.scripts/TobyCustom/Project_Brutality.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +# check for required pk3. +source ${0%/*}/TobyCustom/.dependencies +check_dependencies "${gamePath}/Project_Brutality.pk3" \ + "https://www.moddb.com/mods/project-brutality" \ + "This should be included by default." \ + 'If you are seeing this message, please reinstall after removing any TobyDoom files from ~/.cache/linux-game-manager.' \ + 'rm -f ~/.cache/linux-game-manager/TobyAccessibilityMod_Version*' + # Set up the pk3 and wad files gameOption=( "${gamePath}/TobyAccMod_V${tobyVersion}.pk3" diff --git a/.scripts/TobyCustom/Project_BrutalityLatest.sh b/.scripts/TobyCustom/Project_BrutalityLatest.sh index eb5a1e3..285441a 100755 --- a/.scripts/TobyCustom/Project_BrutalityLatest.sh +++ b/.scripts/TobyCustom/Project_BrutalityLatest.sh @@ -1,5 +1,13 @@ #!/usr/bin/env bash +# check for required pk3. +source ${0%/*}/TobyCustom/.dependencies +check_dependencies "${gamePath}/Project_Brutality-Latest.pk3" \ + "https://www.moddb.com/mods/project-brutality" \ + "This should be included by default." \ + 'If you are seeing this message, please reinstall after removing any TobyDoom files from ~/.cache/linux-game-manager.' \ + 'rm -f ~/.cache/linux-game-manager/TobyAccessibilityMod_Version*' + # Set up the pk3 and wad files gameOption=( "${gamePath}/TobyAccMod_V${tobyVersion}.pk3"