Compare commits
2 Commits
7e1409596a
...
97a1ff5186
Author | SHA1 | Date |
---|---|---|
Mr_Goldberg | 97a1ff5186 | |
Mr_Goldberg | 7f3eb9970e |
|
@ -16,7 +16,7 @@ protobuf_static_steamos:
|
|||
- echo $BASE_PREFIX_PATH
|
||||
- mkdir deps
|
||||
- cd deps
|
||||
- git clone https://github.com/protocolbuffers/protobuf.git
|
||||
- git clone --branch 21.x https://github.com/protocolbuffers/protobuf.git
|
||||
- cd protobuf
|
||||
- sh autogen.sh
|
||||
- ./configure "CC=gcc-4.9 -m32" "CXX=g++-4.9 -m32" CPPFLAGS="-fPIC -Ofast" CXXFLAGS="-fPIC -Ofast" --prefix=$BASE_PREFIX_PATH/protobuf/prefix_x86/ --disable-shared --enable-static
|
||||
|
|
|
@ -64,7 +64,10 @@ def generate_stats_achievements(schema, config_directory):
|
|||
for s in stats_out:
|
||||
default_num = 0
|
||||
if (s['type'] == 'int'):
|
||||
default_num = int(s['default'])
|
||||
try:
|
||||
default_num = int(s['default'])
|
||||
except ValueError:
|
||||
default_num = int(float(s['default']))
|
||||
else:
|
||||
default_num = float(s['default'])
|
||||
output_stats += "{}={}={}\n".format(s['name'], s['type'], default_num)
|
||||
|
|
Loading…
Reference in New Issue