Minor splash fixes
This commit is contained in:
parent
7f6ef45f37
commit
5a41663ddc
@ -9,7 +9,7 @@
|
|||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
|
|
||||||
static struct fb* fb = (struct fb*) 0x23FFFE00;
|
static struct fb *fb = (struct fb *)0x23FFFE00;
|
||||||
|
|
||||||
void shutdownLCD(void){
|
void shutdownLCD(void){
|
||||||
|
|
||||||
@ -30,8 +30,8 @@ void shutdownLCD(void){
|
|||||||
}
|
}
|
||||||
|
|
||||||
void clearScreen(void){
|
void clearScreen(void){
|
||||||
memset(fb->top_left, 0, 0x38400);
|
memset(fb->top_left, 0, 0x46500);
|
||||||
memset(fb->top_right, 0, 0x38400);
|
memset(fb->top_right, 0, 0x46500);
|
||||||
memset(fb->bottom, 0, 0x38400);
|
memset(fb->bottom, 0, 0x38400);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -39,6 +39,6 @@ void loadSplash(void){
|
|||||||
//Check if it's a no-screen-init A9LH boot via PDN_GPU_CNT
|
//Check if it's a no-screen-init A9LH boot via PDN_GPU_CNT
|
||||||
if (*((u8*)0x10141200) == 0x1) return;
|
if (*((u8*)0x10141200) == 0x1) return;
|
||||||
clearScreen();
|
clearScreen();
|
||||||
fileRead(fb->top_left, "/rei/splash.bin", 0x46500);
|
if(fileRead(fb->top_left, "/rei/splash.bin", 0x46500) != 0) return;
|
||||||
u64 i = 0xFFFFFF; while(--i) __asm("mov r0, r0"); //Less Ghetto sleep func
|
u64 i = 0xFFFFFF; while(--i) __asm("mov r0, r0"); //Less Ghetto sleep func
|
||||||
}
|
}
|
Reference in New Issue
Block a user