mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 06:08:50 +00:00
Add files via upload
This commit is contained in:
parent
79a58cca3e
commit
7ad376e5a3
1 changed files with 18 additions and 12 deletions
|
@ -6,33 +6,39 @@ set "iso_files="
|
||||||
|
|
||||||
REM Get a list of ISO and WBFS files in the same directory as the script
|
REM Get a list of ISO and WBFS files in the same directory as the script
|
||||||
for %%F in ("%~dp0*.iso") do (
|
for %%F in ("%~dp0*.iso") do (
|
||||||
set "iso_files=!iso_files! \"%%~F\""
|
set "iso_files=!iso_files! "%%~F""
|
||||||
)
|
)
|
||||||
for %%F in ("%~dp0*.wbfs") do (
|
for %%F in ("%~dp0*.wbfs") do (
|
||||||
set "iso_files=!iso_files! \"%%~F\""
|
set "iso_files=!iso_files! "%%~F""
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Check if there are no ISO or WBFS files
|
REM Check if there are no ISO or WBFS files
|
||||||
if not defined iso_files (
|
if not defined iso_files (
|
||||||
echo.
|
echo.
|
||||||
echo No ISO or WBFS files found in the same directory as the script.
|
echo No ISO or WBFS files found in the same directory as the script.
|
||||||
echo Place the Mario Party 8 (USA) (Revision 2) ISO or WBFS in the script's directory and run it again.
|
echo Place the Mario Party 8 USA Revision 2 ISO or WBFS in the script's directory and run it again.
|
||||||
echo.
|
echo.
|
||||||
pause
|
pause
|
||||||
exit /b 0
|
exit /b 0
|
||||||
)
|
)
|
||||||
|
|
||||||
REM Iterate over each ISO or WBFS file and process it
|
REM Iterate over each ISO or WBFS file and process it
|
||||||
for %%I in (!iso_files!) do (
|
for %%F in (%iso_files%) do (
|
||||||
echo.
|
echo.
|
||||||
echo Given %%~I
|
echo Given %%F
|
||||||
wit extract %%~I --dest=temp
|
|
||||||
IF exist "temp\DATA" (
|
"tools/wit" extract %%F --dest=temp
|
||||||
xcopy "..\mp8motion" "temp\DATA" /s /y /e
|
|
||||||
) ELSE (
|
REM Determine the destination directory
|
||||||
xcopy "..\mp8motion" "temp" /s /y /e
|
set "dest_dir=temp"
|
||||||
|
if exist "temp\DATA" (
|
||||||
|
set "dest_dir=temp\DATA"
|
||||||
)
|
)
|
||||||
wit copy "temp" "..\Mario Party 8 (USA) [GameCube Contrller v5].wbfs"
|
|
||||||
|
REM Copy files using xcopy
|
||||||
|
xcopy "mp8motion" "!dest_dir!" /s /y /e
|
||||||
|
|
||||||
|
"tools/wit" copy "temp" "..\Mario Party 8 (USA) [GameCube Controller v5].wbfs"
|
||||||
rmdir /s /q temp
|
rmdir /s /q temp
|
||||||
echo Press Enter to continue.
|
echo Press Enter to continue.
|
||||||
pause
|
pause
|
||||||
|
@ -41,4 +47,4 @@ for %%I in (!iso_files!) do (
|
||||||
echo.
|
echo.
|
||||||
echo Press Enter to exit.
|
echo Press Enter to exit.
|
||||||
pause
|
pause
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue