def auto_organize_games(self, source_dir, target_device): """ Automatically find all Wii games in a directory and add them to WBFS """ wbfs_extensions = {'.iso', '.wbfs'} games_found = [] # Recursively find all game files for root, dirs, files in os.walk(source_dir): for file in files: if Path(file).suffix.lower() in wbfs_extensions: full_path = os.path.join(root, file) games_found.append(full_path)
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}") file) games_found.append(full_path) def add_game(self
manager = WBFSManager() manager.interactive_menu() if == " main ": main() 📦 Installation & Usage # Install dependencies (Ubuntu/Debian) sudo apt update sudo apt install wbfs-tools parted coreutils Download the script nano wbfs_manager.py (paste the code above) Make it executable chmod +x wbfs_manager.py Run as root (needed for disk operations) sudo python3 wbfs_manager.py 🚀 Advanced Feature: Auto-Mount & Game Organizer Here's an bonus feature - an auto-organizer for WBFS games: file) games_found.append(full_path) def add_game(self
def check_dependencies(self): """Check if required tools are installed""" deps = ['wbfs-tool', 'dd', 'parted'] missing = [] for dep in deps: if not shutil.which(dep) and dep != 'wbfs-tool': missing.append(dep) if missing: print(f"⚠️ Missing dependencies: {', '.join(missing)}") print("Install with: sudo apt install wbfs-tools parted coreutils") file) games_found.append(full_path) def add_game(self