File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -995,7 +995,7 @@ toc_version="$root_toc_version"
995
995
if [[ -n " $toc_version " && -z " $game_type " ]]; then
996
996
# toc -> game type
997
997
case $toc_version in
998
- 113 * ) game_type=" classic" ;;
998
+ 11[34] * ) game_type=" classic" ;;
999
999
205* ) game_type=" bcc" ;;
1000
1000
* ) game_type=" retail"
1001
1001
esac
@@ -1011,15 +1011,15 @@ else
1011
1011
fi
1012
1012
# Check for other interface lines
1013
1013
if [[ -z " $toc_version " ]] || \
1014
- [[ " $game_type " == " classic" && " $toc_version " != " 113" * ]] || \
1014
+ [[ " $game_type " == " classic" && ( " $toc_version " ! = " 113" * && " $toc_version " ! = " 114 " * ) ]] || \
1015
1015
[[ " $game_type " == " bcc" && " $toc_version " != " 205" * ]] || \
1016
- [[ " $game_type " == " retail" && (" $toc_version " == " 113" * || " $toc_version " == " 205" * ) ]]
1016
+ [[ " $game_type " == " retail" && (" $toc_version " == " 113" * || " $toc_version " == " 114 " * || " $toc_version " == " 205" * ) ]]
1017
1017
then
1018
1018
toc_version=" $game_type_toc_version "
1019
1019
if [[ -z " $toc_version " ]]; then
1020
1020
# Check @non-@ blocks
1021
1021
case $game_type in
1022
- classic) toc_version=$( sed -n ' /@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< " $toc_file" | awk ' /#[[:blank:]]*## Interface:[[:blank:]]*(113 )/ { print $NF; exit }' ) ;;
1022
+ classic) toc_version=$( sed -n ' /@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< " $toc_file" | awk ' /#[[:blank:]]*## Interface:[[:blank:]]*(11[34] )/ { print $NF; exit }' ) ;;
1023
1023
bcc) toc_version=$( sed -n ' /@non-[-a-z]*@/,/@end-non-[-a-z]*@/{//b;p}' <<< " $toc_file" | awk ' /#[[:blank:]]*## Interface:[[:blank:]]*(205)/ { print $NF; exit }' ) ;;
1024
1024
esac
1025
1025
# This becomes the actual interface version after string replacements
You can’t perform that action at this time.
0 commit comments