Added bottom screen splash image support
As suggested by Apache Thunder
This commit is contained in:
parent
c3ebce1666
commit
4748c0292c
@ -337,7 +337,7 @@ static int SD_Init()
|
||||
{
|
||||
inittarget(&handleSD);
|
||||
|
||||
waitcycles(1u << 18); //Card needs a little bit of time to be detected, it seems
|
||||
waitcycles(1u << 19); //Card needs a little bit of time to be detected, it seems
|
||||
|
||||
//If not inserted
|
||||
if (!(*((vu16*)0x1000601c) & TMIO_STAT0_SIGSTATE)) return -1;
|
||||
|
@ -36,6 +36,8 @@ void clearScreen(void){
|
||||
|
||||
void loadSplash(void){
|
||||
clearScreen();
|
||||
if(!fileRead(fb->top_left, "/rei/splash.bin", 0x46500)) return;
|
||||
if(fileRead(fb->top_left, "/rei/splash.bin", 0x46500) ||
|
||||
fileRead(fb->bottom, "/rei/splashbottom.bin", 0x38400)){
|
||||
u64 i = 0xFFFFFF; while(--i) __asm("mov r0, r0"); //Less Ghetto sleep func
|
||||
}
|
||||
}
|
@ -337,7 +337,7 @@ static int SD_Init()
|
||||
{
|
||||
inittarget(&handleSD);
|
||||
|
||||
waitcycles(1u << 18); //Card needs a little bit of time to be detected, it seems
|
||||
waitcycles(1u << 19); //Card needs a little bit of time to be detected, it seems
|
||||
|
||||
//If not inserted
|
||||
if (!(*((vu16*)0x1000601c) & TMIO_STAT0_SIGSTATE)) return -1;
|
||||
|
Reference in New Issue
Block a user