Advertisement
Drakonas

Dolphin ISO checker 1.0 (Needs editing to work for your use)

May 28th, 2015
286
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.67 KB | None | 0 0
  1. @echo off
  2. rem This is 1.0. In 1.1 I will make the ISO compatibility check actually work regardless of the extension, and
  3. rem use WIT to truly check to make sure it's a valid image for Wii and GC games via a title check.
  4. rem Don't worry about time usage. WIT's ID and title checking is near instantaneous.
  5.  
  6. rem Make sure it's a real ISO
  7. echo Checking file for compatibility...
  8. rem setlocal enableDelayedExpansion
  9. echo %~x1|findstr /ir "^\.iso$ ^\.gcm$ ^\.gcz$ ^\.ciso$ ^\.wbfs$" >nul
  10. rem If no error...
  11. if not errorlevel 1 (
  12.     echo File extension is valid. Attempting to start the game...
  13. ) else (
  14.     echo File is not a valid format for Dolphin. Exiting...
  15.     exit /b
  16. )
  17.  
  18. rem Check for Xenoblade Chronicles image, using WIIMM ISO tools
  19. rem This works regardless of the filename
  20. rem But you must have the WIIMM ISO tools installed (extract their zip and run the Windows-install.exe)
  21. wit list -H %1|findstr /ir "^SX4.01.*$" >nul
  22. if not errorlevel 1 (
  23.     echo Detected Xenoblade! Using Dolphin-X instead...
  24.     start "" /d C:\Drake\Games\Wii\Dolphin-X /b C:\Drake\Games\Wii\Dolphin-X\Dolphin-X.exe --batch --exec=%1
  25.     exit /b
  26. )
  27.  
  28. rem Check for The Legend of Zelda: Twilight Princess GC image
  29. wit list -H %1|findstr /ir "^GZ2.01.*$" >nul
  30. if not errorlevel 1 (
  31.     echo Detected Zelda: TP for GC! Using Dolphin-Z instead...
  32.     start "" /d C:\Drake\Games\Wii\Dolphin-Z /b C:\Drake\Games\Wii\Dolphin-Z\Dolphin-Z.exe --batch --exec=%1
  33.     exit /b
  34. )
  35.  
  36. echo Detected standard game. Using normal Dolphin...
  37. start "" /d C:\Drake\Games\Wii\Dolphin /b C:\Drake\Games\Wii\Dolphin\Dolphin64.exe --batch --exec=%1
  38.  
  39.  
  40. REM DOpus Chooser Dialogue:
  41. REM {code|<message>|<option 1>[=<value 1>][+<option 2>[=<value 2>]...]}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement