Added another check for game documentation.

This commit is contained in:
Storm Dragon 2021-04-27 20:55:06 -04:00
parent ab1e89fd6b
commit 143790910f

View File

@ -299,6 +299,11 @@ echo "Loading documentation, please wait..."
if [[ -z "$gameDoc" ]]; then
gameDoc="$(find "$gamePath" -type f -iname 'readme.txt')"
fi
if [[ -z "$gameDoc" ]]; then
gameDoc="$(find "$gamePath" -type f -iname '*.url' -exec grep -i 'url=' {} \;)"
gameDoc="${gameDoc#*=}"
gameDoc="${gameDoc//[[:cntrl:]]/}"
fi
# Display documentation if available.
if [[ -n "$gameDoc" ]]; then
w3m "$gameDoc"