From fd064c15b1209a2dd0231e2b0bf2c34ef4adeb68 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 17 May 2021 00:35:37 -0400 Subject: [PATCH] Documentation updated. --- audiogame-manager.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/audiogame-manager.sh b/audiogame-manager.sh index b2e294a..b0a6fda 100755 --- a/audiogame-manager.sh +++ b/audiogame-manager.sh @@ -310,6 +310,12 @@ echo "Loading documentation, please wait..." local gamePath="$(winepath -u "$2" 2> /dev/null)" gamePath="${gamePath%/*}" local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' -or -iname 'user_manual.htm' | head -1)" + # Game name specific docs, add the name to the for loop. + if [[ -z "$gameDoc" ]]; then + for i in "troopanum.txt" ; do + gameDoc="$(find "$gamePath" -type f -iname "$i" -or -iname 'manual.htm' | head -1)" + done + fi if [[ -z "$gameDoc" ]]; then gameDoc="$(find "$gamePath" -type f -iname 'manual.html' -or -iname 'manual.htm' | head -1)" fi