mirror of
https://github.com/wiiu-env/PayloadFromRPX.git
synced 2024-11-27 23:54:13 +01:00
Add key-combo to skip kernel exploit + payload-loading
This commit is contained in:
parent
3091afdd81
commit
215a5d4156
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user