mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
- fix to prevent SD Only to auto switch to on if you temporarily disconnect your USB drive. meaning SD only will stay off.
- also sd only fix for users with old versions of wfl switching to newer version that includes sd only.
This commit is contained in:
parent
76b4308e01
commit
eb8a80f657
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 3.4 MiB |
@ -58,13 +58,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;
|
||||
}
|
||||
|
||||
/* 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++)
|
||||
@ -75,6 +68,14 @@ 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;
|
||||
}
|
||||
|
@ -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.setBool("GENERAL", "sd_only", true);
|
||||
m_cfg.getBool("GENERAL", "sd_only", true);// will only set it true if this doesn't already exist
|
||||
for(int i = USB1; i <= USB8; i++)
|
||||
{
|
||||
if(DeviceHandle.IsInserted(i) && DeviceHandle.GetFSType(i) >= 0)
|
||||
|
Loading…
Reference in New Issue
Block a user