def list_games(self, device): """List all games on WBFS partition""" try: result = subprocess.run(['sudo', 'wbfs-tool', device, 'ls'], capture_output=True, text=True, check=True) print("\nš Games on WBFS drive:") print("-" * 50) print(result.stdout) except subprocess.CalledProcessError: print("ā No WBFS partition found or unable to read.")
def check_usage(self, device): """Show used/free space on WBFS partition""" try: result = subprocess.run(['sudo', 'wbfs-tool', device, 'df'], capture_output=True, text=True, check=True) print("\nš¾ Disk Usage:") print(result.stdout) except: print("ā Could not read disk usage.") def list_games(self, device): """List all games on WBFS
def add_game(self, device, game_file): """Add a game (ISO or WBFS) to WBFS partition""" if not os.path.exists(game_file): print(f"ā File not found: {game_file}") return print(f"Adding {game_file} to {device}...") try: subprocess.run(['sudo', 'wbfs-tool', device, 'add', game_file], check=True) print(f"ā Game added successfully!") except subprocess.CalledProcessError as e: print(f"ā Failed to add game: {e}") def list_games(self, device): """List all games on WBFS