Compare commits

...

2 Commits

Author SHA1 Message Date
Mr_Goldberg 97a1ff5186
Try to read default num as float in script if int doesn't work. 2022-08-17 20:17:37 -04:00
Mr_Goldberg 7f3eb9970e
Fix protobuf build. 2022-08-16 20:38:16 -04:00
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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)