# was generated with chatgpt import json import re def extract_launch_options(file_path): # Open the file and read the contents with open(file_path, 'r', encoding='utf-8') as file: file_contents = file.read() # Use a regular expression to find appids and their corresponding LaunchOptions pattern = r'"(\d+)"\s*\{[^}]*?"LaunchOptions"\s*"\s*([^"]+)\s*"' matches = re.findall(pattern, file_contents) if matches: for appid, launch_options in matches: print(f"AppID: {appid}") print(f"Launch Options: {launch_options}") print("-" * 40) else: print("No LaunchOptions found in the file.") extract_launch_options('/run/media/jackz/3a44ccb4-9c88-4e02-b399-dceb44b3229a/home/jackz/.steam/debian-installation/userdata/98487534/config/localconfig.vdf')