Update yuzu_copy.bat

Updating the yuzu_copy.bat to create the `%appdata%/yuzu/sysdata` folder if it doesn't exist, and to update info about an error if the rawnand.bin is one complete file.
This commit is contained in:
Eloeri 2019-02-05 08:52:55 -06:00 committed by GitHub
parent 0743d60c98
commit e64549be12
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,12 +1,15 @@
@ECHO off @ECHO off
TITLE Yuzu Copy Utility v3 TITLE Yuzu Copy Utility v4
ECHO Yuzu Copy Utility ECHO Yuzu Copy Utility
ECHO By DarkLordZach ECHO By DarkLordZach
ECHO v3 - 11/05/2018 ECHO v4 - 02/05/2018
SET mypath=%~dp0\backup\ SET mypath=%~dp0\backup\
cd /d %mypath% cd /d %mypath%
if not exist %appdata%\yuzu\sysdata\ (
mkdir %appdata%\yuzu\sysdata\
)
if exist dumps goto noid if exist dumps goto noid
if not exist dumps goto id if not exist dumps goto id
@ -23,6 +26,7 @@ ECHO Copying NAND backup...
COPY /B /Y "%~dp0\rawnand.bin.00"+"%~dp0\rawnand.bin.01"+"%~dp0\rawnand.bin.02"+"%~dp0\rawnand.bin.03"+"%~dp0\rawnand.bin.04"+"%~dp0\rawnand.bin.05"+"%~dp0\rawnand.bin.06"+"%~dp0\rawnand.bin.07"+"%~dp0\rawnand.bin.08"+"%~dp0\rawnand.bin.09"+"%~dp0\rawnand.bin.10"+"%~dp0\rawnand.bin.11"+"%~dp0\rawnand.bin.12"+"%~dp0\rawnand.bin.13"+"%~dp0\rawnand.bin.14" "%USERPROFILE%\Desktop\rawnand.bin" COPY /B /Y "%~dp0\rawnand.bin.00"+"%~dp0\rawnand.bin.01"+"%~dp0\rawnand.bin.02"+"%~dp0\rawnand.bin.03"+"%~dp0\rawnand.bin.04"+"%~dp0\rawnand.bin.05"+"%~dp0\rawnand.bin.06"+"%~dp0\rawnand.bin.07"+"%~dp0\rawnand.bin.08"+"%~dp0\rawnand.bin.09"+"%~dp0\rawnand.bin.10"+"%~dp0\rawnand.bin.11"+"%~dp0\rawnand.bin.12"+"%~dp0\rawnand.bin.13"+"%~dp0\rawnand.bin.14" "%USERPROFILE%\Desktop\rawnand.bin"
ECHO If no errors about missing files appeared, this utility completed successfully. ECHO If no errors about missing files appeared, this utility completed successfully.
ECHO If there were errors, ensure you followed all of the steps in the guide prior to this. ECHO If there were errors, ensure you followed all of the steps in the guide prior to this.
ECHO If the rawnand.bin is one complete file, please ignore referenced error and continue with the QuickStart guide.
goto exit goto exit
:noid :noid
@ -35,11 +39,10 @@ COPY /B /Y "%~dp0\backup\pkg1\secmon.bin" "%APPDATA%\yuzu\sysdata\secmon.bin"
COPY /B /Y "%~dp0\backup\pkg1\pkg1_decr.bin" "%APPDATA%\yuzu\sysdata\pkg1_decr.bin" COPY /B /Y "%~dp0\backup\pkg1\pkg1_decr.bin" "%APPDATA%\yuzu\sysdata\pkg1_decr.bin"
ECHO Copying NAND backup... ECHO Copying NAND backup...
COPY /B /Y "%~dp0\rawnand.bin.00"+"%~dp0\rawnand.bin.01"+"%~dp0\rawnand.bin.02"+"%~dp0\rawnand.bin.03"+"%~dp0\rawnand.bin.04"+"%~dp0\rawnand.bin.05"+"%~dp0\rawnand.bin.06"+"%~dp0\rawnand.bin.07"+"%~dp0\rawnand.bin.08"+"%~dp0\rawnand.bin.09"+"%~dp0\rawnand.bin.10"+"%~dp0\rawnand.bin.11"+"%~dp0\rawnand.bin.12"+"%~dp0\rawnand.bin.13"+"%~dp0\rawnand.bin.14" "%USERPROFILE%\Desktop\rawnand.bin" COPY /B /Y "%~dp0\rawnand.bin.00"+"%~dp0\rawnand.bin.01"+"%~dp0\rawnand.bin.02"+"%~dp0\rawnand.bin.03"+"%~dp0\rawnand.bin.04"+"%~dp0\rawnand.bin.05"+"%~dp0\rawnand.bin.06"+"%~dp0\rawnand.bin.07"+"%~dp0\rawnand.bin.08"+"%~dp0\rawnand.bin.09"+"%~dp0\rawnand.bin.10"+"%~dp0\rawnand.bin.11"+"%~dp0\rawnand.bin.12"+"%~dp0\rawnand.bin.13"+"%~dp0\rawnand.bin.14" "%USERPROFILE%\Desktop\rawnand.bin"
goto exit
ECHO If no errors about missing files appeared, this utility completed successfully. ECHO If no errors about missing files appeared, this utility completed successfully.
ECHO If there were errors, ensure you followed all of the steps in the guide prior to this. ECHO If there were errors, ensure you followed all of the steps in the guide prior to this.
ECHO If the rawnand.bin is one complete file, please ignore referenced error and continue with the QuickStart guide.
goto exit goto exit
:exit :exit
pause pause