Skip to content

Commit

Permalink
Add more error checking to the build batch script.
Browse files Browse the repository at this point in the history
  • Loading branch information
gibbed committed May 10, 2018
1 parent b6b1663 commit 7f38c6e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 7f38c6e

Please sign in to comment.