Skip to content

Commit

Permalink
Better here
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraWright committed Mar 16, 2016
1 parent dcb09a9 commit 078fce4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion loader/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ void main(){
((pressed & BUTTON_UP) && loadPayload("/rei/payloads/up.bin")) ||
((pressed & BUTTON_DOWN) && loadPayload("/rei/payloads/down.bin")) ||
loadPayload("/rei/payloads/default.bin")){
initLCD();
//Determine if screen was already inited
if(*(vu8 *)0x10141200 == 0x1) initLCD();
((void (*)())PAYLOAD_ADDRESS)();
}
}
3 changes: 0 additions & 3 deletions loader/source/screeninit.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,6 @@ void initLCD()
((void (*)())*arm11)();
}

//Determine if screen was already inited
if(*(vu8 *)0x10141200 != 0x1) return;

//Set CakeBrah framebuffers
*(vu32 *)0x23FFFE00 = 0x18300000;
*(vu32 *)0x23FFFE04 = 0x18300000;
Expand Down

0 comments on commit 078fce4

Please sign in to comment.