From bf90bdf012003c988e270e585ce3429f07228955 Mon Sep 17 00:00:00 2001 From: Eloeri <42394653+Eloeri@users.noreply.github.com> Date: Mon, 5 Nov 2018 11:58:14 -0600 Subject: [PATCH] Fixed a few errors: Updated yuzu_copy.bat to account for nand ID Tidied up a few errors. Updated yuzu_copy.bat, left the original script alone, but edited in away for the .bat to check if the backup has a nand ID or not. --- site/content/help/quickstart/yuzu_copy.bat | 39 ++++++++++++++++++---- 1 file changed, 32 insertions(+), 7 deletions(-) diff --git a/site/content/help/quickstart/yuzu_copy.bat b/site/content/help/quickstart/yuzu_copy.bat index 50787f1d..8d27d281 100644 --- a/site/content/help/quickstart/yuzu_copy.bat +++ b/site/content/help/quickstart/yuzu_copy.bat @@ -1,9 +1,31 @@ -@ECHO OFF -TITLE Yuzu Copy Utility v2 +@ECHO off +TITLE Yuzu Copy Utility v3 -ECHO Yuzu Copy Utility v2 -ECHO By DarkLordZach -ECHO +ECHO Yuzu Copy Utility +ECHO By DarkLordZach +ECHO v3 - 11/05/2018 + +SET mypath=%~dp0\backup\ +cd /d %mypath% +if exist dumps goto noid +if not exist dumps goto id + +:id +for /d %%A in (*) do cd %%A +ECHO Copying fuses... +COPY /B /Y "dumps\fuses.bin" "%APPDATA%\yuzu\sysdata\fuses.bin" +ECHO Copying BOOT0... +COPY /B /Y "BOOT0" "%APPDATA%\yuzu\sysdata\BOOT0" +ECHO Copying package1... +COPY /B /Y "pkg1\secmon.bin" "%APPDATA%\yuzu\sysdata\secmon.bin" +COPY /B /Y "pkg1\pkg1_decr.bin" "%APPDATA%\yuzu\sysdata\pkg1_decr.bin" +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" +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. +goto exit + +:noid ECHO Copying fuses... COPY /B /Y "%~dp0\backup\dumps\fuses.bin" "%APPDATA%\yuzu\sysdata\fuses.bin" ECHO Copying BOOT0... @@ -13,8 +35,11 @@ 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" 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" - +goto exit 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. +goto exit + +:exit +pause -PAUSE \ No newline at end of file