-
Notifications
You must be signed in to change notification settings - Fork 0
/
RVZ_WBFS_Conv.bat
69 lines (58 loc) · 1.84 KB
/
RVZ_WBFS_Conv.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
@ECHO OFF
:: Script Version 1.2MOD
:: Original by ElektroStudios
:: https://github.com/ElektroStudios/Dolphin_Emulator_RVZ_ISO_GameCube_Wii_Conversion_Scripts
::
:: Modified by dazzaXx
:: https://github.com/dazzaXx/RVZ_WBFS_Conv
SET "InputDirectoryPathRVZ=%~dp0RVZ"
SET "OutputDirectoryPathRVZ=%~dp0ISO"
SET "InputDirectoryPathWBFS=%~dp0ISO"
SET "OutputDirectoryPathWBFS=%~dp0WBFS"
ECHO: Script Settings:
ECHO: ----------------
ECHO:
ECHO: - Input Directory Path (RVZ2ISO)...: %InputDirectoryPathRVZ%
ECHO: - Output Directory Path (RVZ2ISO)..: %OutputDirectoryPathRVZ%
ECHO:
ECHO: - Input Directory Path (ISO2WBFS)...: %InputDirectoryPathWBFS%
ECHO: - Output Directory Path (ISO2WBFS)..: %OutputDirectoryPathWBFS%
ECHO+
timeout 5 /nobreak
CLS
MKDIR "%OutputDirectoryPathRVZ%" 1>NUL 2>&1 || (
IF NOT EXIST "%OutputDirectoryPathRVZ%" (
ECHO:Error trying to create ISO output directory.
PAUSE
EXIt /B 1
)
)
MKDIR "%OutputDirectoryPathWBFS%" 1>NUL 2>&1 || (
IF NOT EXIST "%OutputDirectoryPathWBFS%" (
ECHO:Error trying to create WBFS output directory.
PAUSE
EXIt /B 1
)
)
SET "RVZParam=%%# IN ("%InputDirectoryPathRVZ%\*.rvz")"
SET "ISOParam=%%# IN ("%InputDirectoryPathWBFS%\*.iso")"
FOR %RVZParam% DO (
ECHO:Converting "%%~fx#" to ISO...
".\tools\DolphinTool.exe" convert --format=iso --input="%%~f#" --output="%OutputDirectoryPathRVZ%\%%~n#.iso"
)
ECHO+
ECHO: All .RVZ files covnverted to .ISO... Converting to .WBFS now...
ECHO+
GOTO :convwbfs
:convwbfs
FOR %ISOParam% DO (
ECHO:Converting "%%~fx#" to WBFS...
".\tools\WIT\wit.exe" copy --wbfs "%%~f#" "%OutputDirectoryPathWBFS%\%%~n#.wbfs"
)
cls
ECHO+
ECHO: All .ISO files covnverted to .WBFS, you will find them in the "WBFS" folder, Clearing .ISO files now...
del "%InputDirectoryPathWBFS%\"*.iso""
ECHO+
PAUSE
EXIT /B 0