Improved the documentation search.
This commit is contained in:
parent
f8fac3b74f
commit
4bd54f7828
@ -286,15 +286,15 @@ echo "Loading documentation, please wait..."
|
|||||||
# Try to find documentation based on common naming conventions.
|
# Try to find documentation based on common naming conventions.
|
||||||
local gamePath="$(winepath -u "$2" 2> /dev/null)"
|
local gamePath="$(winepath -u "$2" 2> /dev/null)"
|
||||||
gamePath="${gamePath%/*}"
|
gamePath="${gamePath%/*}"
|
||||||
local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' | head -1)"
|
local gameDoc="$(find "$gamePath" -type f -iname 'user_manual.html' -or -iname 'user_manual.htm' | head -1)"
|
||||||
if [[ -z "$gameDoc" ]]; then
|
if [[ -z "$gameDoc" ]]; then
|
||||||
gameDoc="$(find "$gamePath" -type f -iname 'manual.html' | head -1)"
|
gameDoc="$(find "$gamePath" -type f -iname 'manual.html' -or -iname 'manual.htm' | head -1)"
|
||||||
fi
|
fi
|
||||||
if [[ -z "$gameDoc" ]]; then
|
if [[ -z "$gameDoc" ]]; then
|
||||||
gameDoc="$(find "$gamePath" -type f -iname 'en.html' | head -1)"
|
gameDoc="$(find "$gamePath" -type f -iname 'en.html' -or -iname 'en.htm' | head -1)"
|
||||||
fi
|
fi
|
||||||
if [[ -z "$gameDoc" ]]; then
|
if [[ -z "$gameDoc" ]]; then
|
||||||
gameDoc="$(find "$gamePath" -type f -iname 'readme.html' | head -1)"
|
gameDoc="$(find "$gamePath" -type f -iname 'readme.html' -or -iname 'readme.htm' | head -1)"
|
||||||
fi
|
fi
|
||||||
if [[ -z "$gameDoc" ]]; then
|
if [[ -z "$gameDoc" ]]; then
|
||||||
gameDoc="$(find "$gamePath" -type f -iname 'manual.txt' | head -1)"
|
gameDoc="$(find "$gamePath" -type f -iname 'manual.txt' | head -1)"
|
||||||
|
Loading…
Reference in New Issue
Block a user