|
|
@ -76,8 +76,7 @@ class PyMaster: |
|
|
|
split = rawFilter.split('\\') |
|
|
|
split = rawFilter.split('\\') |
|
|
|
|
|
|
|
|
|
|
|
# Use NoneType as undefined |
|
|
|
# Use NoneType as undefined |
|
|
|
gamedir = None |
|
|
|
gamedir = 'valve' # halflife, by default |
|
|
|
gamemap = None # UNUSED: until Xash3D will not support full filter |
|
|
|
|
|
|
|
clver = None |
|
|
|
clver = None |
|
|
|
nat = 0 |
|
|
|
nat = 0 |
|
|
|
|
|
|
|
|
|
|
@ -86,8 +85,6 @@ class PyMaster: |
|
|
|
key = split[i + 1] |
|
|
|
key = split[i + 1] |
|
|
|
if( split[i] == 'gamedir' ): |
|
|
|
if( split[i] == 'gamedir' ): |
|
|
|
gamedir = key |
|
|
|
gamedir = key |
|
|
|
elif( split[i] == 'map' ): |
|
|
|
|
|
|
|
gamemap = key |
|
|
|
|
|
|
|
elif( split[i] == 'nat' ): |
|
|
|
elif( split[i] == 'nat' ): |
|
|
|
nat = int(key) |
|
|
|
nat = int(key) |
|
|
|
elif( split[i] == 'clver' ): |
|
|
|
elif( split[i] == 'clver' ): |
|
|
|