Fix supported_languages in generate_emu_config.py script.

This commit is contained in:
Mr_Goldberg 2022-08-13 16:11:07 -04:00
parent 0800649d8f
commit 8b9ce58195
No known key found for this signature in database
GPG Key ID: 8597D87419DEF278
1 changed files with 3 additions and 3 deletions

View File

@ -228,11 +228,11 @@ for appid in appids:
game_info_common = game_info["common"]
if "community_visible_stats" in game_info_common:
generate_achievement_stats(client, appid, out_dir, backup_dir)
if "languages" in game_info_common:
if "supported_languages" in game_info_common:
with open(os.path.join(out_dir, "supported_languages.txt"), 'w') as f:
languages = game_info_common["languages"]
languages = game_info_common["supported_languages"]
for l in languages:
if languages[l] != "0":
if "supported" in languages[l] and languages[l]["supported"] == "true":
f.write("{}\n".format(l))