From 078fce4b3df0ad49f7f6aeefd0ba235ae4f8e838 Mon Sep 17 00:00:00 2001 From: Aurora Date: Thu, 17 Mar 2016 00:37:43 +0100 Subject: [PATCH] Better here --- loader/source/main.c | 3 ++- loader/source/screeninit.c | 3 --- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/loader/source/main.c b/loader/source/main.c index f55a6b6bc..42df9ee04 100644 --- a/loader/source/main.c +++ b/loader/source/main.c @@ -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)(); } } \ No newline at end of file diff --git a/loader/source/screeninit.c b/loader/source/screeninit.c index 793c9d13f..38640aa52 100644 --- a/loader/source/screeninit.c +++ b/loader/source/screeninit.c @@ -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;