add check_neek2o back

This commit is contained in:
Christopher Roy Bratusek 2012-05-03 22:07:47 +02:00
parent 837143a3d3
commit 8d2513e849
4 changed files with 11 additions and 7 deletions

Binary file not shown.

View File

@ -1,5 +1,3 @@
#include <stdio.h>
#include <stdlib.h>
#include <malloc.h>
@ -31,12 +29,8 @@ int LoadXmlFile(const char* filename, struct SSettingsNeek2o *Settings);
}
#endif //__cplusplus
void ExitApp();
int boot_neek2o()
{
int allfound = 0;
@ -161,4 +155,4 @@ int boot_neek2o()
ExitApp();
}
return false;
}
}

View File

@ -15,6 +15,15 @@ int bootmii = 0;
int nandemu = 0;
int priiloader = 0;
bool check_neek2o() {
if(fopen("sd1:/sneek/kernel.bin", "rb") || fopen("usb1:/sneek/kernel.bin", "rb"))
return true;
return false;
}
s32 NandReadFile(char *filepath, u8 **buffer, u32 *filesize)
{
s32 Fd;

View File

@ -13,6 +13,7 @@ s32 NandReadFile(char *filepath, u8 **buffer, u32 *filesize);
int get_priiloader();
int get_bootmii();
int get_nandemu();
bool check_neek2o();
void set_priiloader(int choice);
void set_bootmii(int choice);
void set_nandemu(int choice);