Wbfs Site

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