From 215a5d4156f3e4ea6e7e1788094e9cc52c77e385 Mon Sep 17 00:00:00 2001 From: Maschell Date: Fri, 21 Aug 2020 23:04:26 +0200 Subject: [PATCH] Add key-combo to skip kernel exploit + payload-loading --- source/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/main.cpp b/source/main.cpp index dfd78a2..afa082d 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -51,6 +51,12 @@ int main(int argc, char **argv) { uint32_t btn = vpad_data.hold | vpad_data.trigger; bool loadWithoutHacks = false; bool kernelDone = false; + bool skipKernel = false; + + if ((btn & VPAD_BUTTON_R) == VPAD_BUTTON_R) { + skipKernel = true; + loadWithoutHacks = true; + } if ((btn & VPAD_BUTTON_ZR) == VPAD_BUTTON_ZR) { loadWithoutHacks = true; } @@ -61,7 +67,7 @@ int main(int argc, char **argv) { DoKernelExploit(); } - if (!kernelDone) { + if (!kernelDone && !skipKernel) { if (fopen("fs:/vol/external01/wiiu/payload.elf", "r") != NULL) { WHBLogPrintf("We need the kernel exploit to load the payload"); DoKernelExploit();