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