mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 19:29:18 +01:00
*little change to the bootup (might fix some startup problems)
This commit is contained in:
parent
c743cea589
commit
2039a47250
@ -27,6 +27,7 @@
|
||||
#include "menu.h"
|
||||
#include "input.h"
|
||||
#include "filelist.h"
|
||||
#include "listfiles.h"
|
||||
#include "main.h"
|
||||
#include "fatmounter.h"
|
||||
#include "sys.h"
|
||||
@ -59,14 +60,6 @@ main(int argc, char *argv[])
|
||||
bootDevice_found = true;
|
||||
}
|
||||
|
||||
if(!bootDevice_found)
|
||||
{
|
||||
//try USB
|
||||
struct stat st;
|
||||
if((stat("USB:/apps/usbloader_gx/boot.dol", &st) == 0) || (stat("USB:/apps/usbloader_gx/boot.elf", &st) == 0))
|
||||
strcpy(bootDevice, "USB:");
|
||||
}
|
||||
|
||||
ret2 = IOS_ReloadIOS(249);
|
||||
if(ret2 < 0) {
|
||||
ret2 = IOS_ReloadIOS(222);
|
||||
@ -76,7 +69,13 @@ main(int argc, char *argv[])
|
||||
SDCard_Init(); // mount SD for loading cfg's
|
||||
USBDevice_Init(); // and mount USB:/
|
||||
|
||||
|
||||
if(!bootDevice_found)
|
||||
{
|
||||
//try USB
|
||||
if(checkfile((char*) "USB:/apps/usbloader_gx/boot.dol") || (checkfile((char*) "USB:/apps/usbloader_gx/boot.elf"))
|
||||
|| checkfile((char*) "USB:/apps/usbloadergx/boot.dol") || (checkfile((char*) "USB:/apps/usbloadergx/boot.elf")))
|
||||
strcpy(bootDevice, "USB:");
|
||||
}
|
||||
|
||||
gettextCleanUp();
|
||||
CFG_Load();
|
||||
|
Loading…
Reference in New Issue
Block a user