Skip to content

Commit

Permalink
Try pmInit() sooner, since srv acess is now required ahead of time.
Browse files Browse the repository at this point in the history
  • Loading branch information
TiniVi committed Jan 3, 2017
1 parent 755677a commit 11f000a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ int main(int argc, char **argv){
aptInit();
sdmcInit();
romfsInit();
PANIC(pmInit(), "PM INIT FAILED!");

hidScanInput();
if (hidKeysDown() & KEY_B){ //Hold B to enable prints
Expand Down Expand Up @@ -101,7 +102,6 @@ int main(int argc, char **argv){
/* Patch ARM11 */ //ARM11 hax should be run ahead of time, pm and svcBackdoor is expected to be accessible

kver = osGetKernelVersion();
PANIC(pmInit(), "PM INIT FAILED!");

DEBUG("Patching ARM11...");
svcBackdoor(patch_arm11_codeflow);
Expand All @@ -128,7 +128,7 @@ int main(int argc, char **argv){

gspWaitForVBlank();
}
} else if (debug) { //fix framebuffer on exit
} else if (debug){ //fix framebuffer on exit
consoleClear();
gfxSetScreenFormat(GFX_TOP, GSP_BGR8_OES);
gfxSetFramebufferInfo(GFX_TOP, 0);
Expand Down

0 comments on commit 11f000a

Please sign in to comment.