Wbfs 'link' ✦

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.")

class WBFSManager: def (self): self.check_dependencies() def list_games(self, device): """List all games on WBFS

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 remove_game(self, device, game_id): """Remove a game by its ID (e.g., 'SMNE01' for New Super Mario Bros)""" print(f"Removing game {game_id} from {device}...") try: subprocess.run(['sudo', 'wbfs-tool', device, 'rm', game_id], check=True) print(f"✅ Game {game_id} removed!") except subprocess.CalledProcessError: print(f"❌ Failed to remove game {game_id}. Check ID and try again.") def list_games(self, device): """List all games on WBFS