Add key-combo to skip kernel exploit + payload-loading

This commit is contained in:
Maschell 2020-08-21 23:04:26 +02:00
parent 3091afdd81
commit 215a5d4156

View File

@ -51,6 +51,12 @@ int main(int argc, char **argv) {
uint32_t btn = vpad_data.hold | vpad_data.trigger; uint32_t btn = vpad_data.hold | vpad_data.trigger;
bool loadWithoutHacks = false; bool loadWithoutHacks = false;
bool kernelDone = 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) { if ((btn & VPAD_BUTTON_ZR) == VPAD_BUTTON_ZR) {
loadWithoutHacks = true; loadWithoutHacks = true;
} }
@ -61,7 +67,7 @@ int main(int argc, char **argv) {
DoKernelExploit(); DoKernelExploit();
} }
if (!kernelDone) { if (!kernelDone && !skipKernel) {
if (fopen("fs:/vol/external01/wiiu/payload.elf", "r") != NULL) { if (fopen("fs:/vol/external01/wiiu/payload.elf", "r") != NULL) {
WHBLogPrintf("We need the kernel exploit to load the payload"); WHBLogPrintf("We need the kernel exploit to load the payload");
DoKernelExploit(); DoKernelExploit();