From 8d2513e849f92996653c1e33869fb6cf231d05c9 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 3 May 2012 22:07:47 +0200 Subject: [PATCH] add check_neek2o back --- installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes main/source/Neek/bootneek.cpp | 8 +------- main/source/Tools/SelectIos.cpp | 9 +++++++++ main/source/Tools/SelectIos.h | 1 + 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 67b814f5e268a730e602e690cb0cbac8f0f7a158..fecebaa6eb06ee4f6038065da03132e2618a5c79 100644 GIT binary patch delta 34 qcmcb>a)D)o7?W7OL-k|x?@r3z`U~whc5?~+<*eO$gmtnGlL`Rka}2)# delta 34 qcmcb>a)D)o7?W6@g3EPxp|qQM7sGa+Klmt1+>tHgYv*JgCKUkl-wquB diff --git a/main/source/Neek/bootneek.cpp b/main/source/Neek/bootneek.cpp index ee245f2..5d85deb 100644 --- a/main/source/Neek/bootneek.cpp +++ b/main/source/Neek/bootneek.cpp @@ -1,5 +1,3 @@ - - #include #include #include @@ -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; -} +} \ No newline at end of file diff --git a/main/source/Tools/SelectIos.cpp b/main/source/Tools/SelectIos.cpp index 3d04b78..c9aef08 100644 --- a/main/source/Tools/SelectIos.cpp +++ b/main/source/Tools/SelectIos.cpp @@ -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; diff --git a/main/source/Tools/SelectIos.h b/main/source/Tools/SelectIos.h index 2c50089..dee0e29 100644 --- a/main/source/Tools/SelectIos.h +++ b/main/source/Tools/SelectIos.h @@ -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);