diff --git a/README.md b/README.md index 51fc1e9..30d6fe4 100644 --- a/README.md +++ b/README.md @@ -7,14 +7,14 @@ Prints a table showcasing where the compatfolder, install folder and size of gam Minor note some terminals can't open the hyperlinks properly (konsole) Each box has a hyperlink which opens the folder/file, using a embedded hyperlink in order to reduce -the size of the boxes and have consistency +the size of the boxes and have consistency -1. finds installed steam, (apt/flatpak) +1. finds installed steam, (apt/flatpak) 2. Loads .vdf from location 3. Fetches additional steam libraries 4. Checks mounted status (to exclude things not present) 5. Reads game vdf from steam library locations for paths -6. Prints compatdata ID with steam path and game name +6. Prints AppID with steam path and game name in addition to compatdata folder ## Installation diff --git a/main.py b/main.py index c66ca59..288a648 100644 --- a/main.py +++ b/main.py @@ -20,9 +20,6 @@ class SteamGamePathTool: self.steam_vdf = vd.parse_vdf(self.steam_vdf_path) self.steam_library_locations = vd.find_extra_locations(self.steam_vdf) - for library in self.steam_library_locations: - print(f"[+] Found Steam library at: {library}") - games = vd.fetchall_vdfs(self.steam_vdf) games = self.sort_games(games) @@ -30,6 +27,9 @@ class SteamGamePathTool: game_rend = [Panel(self.get_game_content(game), expand=True) for game in games] console.print(Columns(game_rend)) + for library in self.steam_library_locations: + print(f"[+] Found Steam library at: {library}") + self.prompter = PromptHelper(games) while True: self.prompt_user() diff --git a/prompt_helper.py b/prompt_helper.py index eec0055..da9e869 100644 --- a/prompt_helper.py +++ b/prompt_helper.py @@ -4,6 +4,8 @@ import sys def generate_completer(game_list): g_list = [x['name'] for x in game_list] + [x['appid'] for x in game_list] + g_list.append("q") + g_list.append("quit") return FuzzyCompleter(WordCompleter(g_list)) class PromptHelper: