mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +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
331d1f1b31
commit
1fcf25a397
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,6 +58,13 @@ bool isUsingUSB() {
|
|||||||
return true;
|
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 */
|
/* 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};
|
const char *domains[] = {WII_DOMAIN, GC_DOMAIN, CHANNEL_DOMAIN, PLUGIN_DOMAIN, HOMEBREW_DOMAIN};
|
||||||
for(int i = 0; i < 5; i++)
|
for(int i = 0; i < 5; i++)
|
||||||
@ -68,14 +75,6 @@ bool isUsingUSB() {
|
|||||||
return true;
|
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");
|
gprintf("using SD only, no need for USB mounting.\n");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -163,7 +163,7 @@ bool CMenu::init()
|
|||||||
_netInit();
|
_netInit();
|
||||||
|
|
||||||
/* Set SD only to off if any usb device is attached and format is FAT, NTFS, WBFS, or LINUX */
|
/* 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++)
|
for(int i = USB1; i <= USB8; i++)
|
||||||
{
|
{
|
||||||
if(DeviceHandle.IsInserted(i) && DeviceHandle.GetFSType(i) >= 0)
|
if(DeviceHandle.IsInserted(i) && DeviceHandle.GetFSType(i) >= 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user