From 7f38c6e6364846559a50db53836b582b9226c814 Mon Sep 17 00:00:00 2001 From: gibbed Date: Thu, 10 May 2018 16:20:50 -0500 Subject: [PATCH] Add more error checking to the build batch script. --- build.bat | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/build.bat b/build.bat index 87d85fc..25336a5 100644 --- a/build.bat +++ b/build.bat @@ -8,6 +8,9 @@ if not exist "%LLVM_PATH%\bin\ld.lld.exe" ( if not exist "tools\bin\PatchElf.exe" ( goto no_patchelf ) +if not exist "bin\boot.elf" ( + goto no_boot +) cd "bin" 2>NUL && cd .. || mkdir bin %LLVM_PATH%\bin\clang.exe -target ppc64-unknown-unknown -m64 -mllvm --x86-asm-syntax=intel -c debug_patch.S -o bin\debug_patch.o %LLVM_PATH%\bin\ld.lld.exe -v --section-start .text=0x10200 bin\debug_patch.o -o bin\debug_patch.elf @@ -25,3 +28,9 @@ exit 0 echo Please open tools\Tools.sln and compile the solution in Debug mode. pause exit 1 + +:no_boot + echo Could not find bin\boot.elf. + echo Please copy the decrypted EBOOT to bin\boot.elf. + pause + exit 1