mirror of
https://github.com/wiiu-env/PayloadFromRPX.git
synced 2024-11-24 06:29:15 +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;
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user