diff --git a/out/boot.dol b/out/boot.dol index ca8afb0a..dca74301 100644 Binary files a/out/boot.dol and b/out/boot.dol differ diff --git a/source/main.cpp b/source/main.cpp index e497986f..e794774d 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -58,6 +58,13 @@ bool isUsingUSB() { return true; } + /* if sd_only is false, then we're using USB */ + if(!m_cfg.getBool("general", "sd_only", true)) + { + // sd_only is false, so assuming we're using USB. + return true; + } + /* If any of the sections have partition set > 0, we're on USB */ const char *domains[] = {WII_DOMAIN, GC_DOMAIN, CHANNEL_DOMAIN, PLUGIN_DOMAIN, HOMEBREW_DOMAIN}; for(int i = 0; i < 5; i++) @@ -68,14 +75,6 @@ bool isUsingUSB() { return true; } } - - /* if sd_only is false, then we're using USB */ - if(!m_cfg.getBool("general", "sd_only", true)) - { - // sd_only is false, so assuming we're using USB. - return true; - } - gprintf("using SD only, no need for USB mounting.\n"); return false; } diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index 536a1212..d43f4f1f 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -163,7 +163,7 @@ bool CMenu::init() _netInit(); /* Set SD only to off if any usb device is attached and format is FAT, NTFS, WBFS, or LINUX */ - m_cfg.getBool("GENERAL", "sd_only", true);// will only set it true if this doesn't already exist + m_cfg.setBool("GENERAL", "sd_only", true); for(int i = USB1; i <= USB8; i++) { if(DeviceHandle.IsInserted(i) && DeviceHandle.GetFSType(i) >= 0)