From d120f7cb231029bd0b0ab319379af45679464d5c Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Thu, 6 Feb 2025 21:02:07 -0800 Subject: [PATCH] Add files via upload --- NSLGameScanner.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/NSLGameScanner.py b/NSLGameScanner.py index 827a7d7..fa6b2bf 100644 --- a/NSLGameScanner.py +++ b/NSLGameScanner.py @@ -395,18 +395,20 @@ def create_steam_store_app_manifest_file(steam_store_appid, steam_store_game_nam return # Prepare the appmanifest data - app_manifest_data = { - "AppState": { - "AppID": str(steam_store_appid), - "Universe": "1", - "installdir": steam_store_game_name, - "StateFlags": "0" - } - } + app_manifest_data = f""" +"AppState" +{{ + "appid" "{steam_store_appid}" + "Universe" "1" + "name" "{steam_store_game_name}" + "StateFlags" "0" + "installdir" "{steam_store_game_name}" +}} +""" # Write the manifest to the file with open(appmanifest_path, 'w') as file: - json.dump(app_manifest_data, file, indent=2) + file.write(app_manifest_data.strip()) print(f"Created appmanifest file at: {appmanifest_path}")