mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
-fix for changing partition to find a fat partition for emunand
This commit is contained in:
parent
f23d022675
commit
eaad76ec83
@ -719,17 +719,14 @@ int CMenu::_AutoCreateNand(void)
|
|||||||
else if(m_btnMgr.selected(m_configBtnPartitionP) || m_btnMgr.selected(m_configBtnPartitionM))
|
else if(m_btnMgr.selected(m_configBtnPartitionP) || m_btnMgr.selected(m_configBtnPartitionM))
|
||||||
{
|
{
|
||||||
s8 direction = m_btnMgr.selected(m_configBtnPartitionP) ? 1 : -1;
|
s8 direction = m_btnMgr.selected(m_configBtnPartitionP) ? 1 : -1;
|
||||||
//_setPartition(direction);
|
|
||||||
u8 limiter = 0;
|
u8 limiter = 0;
|
||||||
int FS_Type = 0;
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
currentPartition = loopNum(currentPartition + direction, 10);
|
currentPartition = loopNum(currentPartition + direction, 9);
|
||||||
FS_Type = DeviceHandle.GetFSType(currentPartition);
|
|
||||||
limiter++;
|
limiter++;
|
||||||
}
|
}
|
||||||
while(limiter < 12 && FS_Type != PART_FS_FAT);
|
while(limiter < 9 && !DeviceHandle.PartitionUsableForNandEmu(currentPartition));
|
||||||
//if limiter = 12 error
|
//if limiter = 9 error
|
||||||
m_btnMgr.setText(m_configLblPartition, upperCase(DeviceName[currentPartition]));
|
m_btnMgr.setText(m_configLblPartition, upperCase(DeviceName[currentPartition]));
|
||||||
}
|
}
|
||||||
else if(m_btnMgr.selected(m_nandemuBtnBack))
|
else if(m_btnMgr.selected(m_nandemuBtnBack))
|
||||||
|
Loading…
Reference in New Issue
Block a user