From eaad76ec839d0be018ef9be857797d487ec12801 Mon Sep 17 00:00:00 2001 From: fledge68 Date: Mon, 25 Apr 2016 01:01:35 +0000 Subject: [PATCH] -fix for changing partition to find a fat partition for emunand --- source/menu/menu_nandemu.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/menu/menu_nandemu.cpp b/source/menu/menu_nandemu.cpp index 3e5b86b1..f52a8f77 100644 --- a/source/menu/menu_nandemu.cpp +++ b/source/menu/menu_nandemu.cpp @@ -719,17 +719,14 @@ int CMenu::_AutoCreateNand(void) else if(m_btnMgr.selected(m_configBtnPartitionP) || m_btnMgr.selected(m_configBtnPartitionM)) { s8 direction = m_btnMgr.selected(m_configBtnPartitionP) ? 1 : -1; - //_setPartition(direction); u8 limiter = 0; - int FS_Type = 0; do { - currentPartition = loopNum(currentPartition + direction, 10); - FS_Type = DeviceHandle.GetFSType(currentPartition); + currentPartition = loopNum(currentPartition + direction, 9); limiter++; } - while(limiter < 12 && FS_Type != PART_FS_FAT); - //if limiter = 12 error + while(limiter < 9 && !DeviceHandle.PartitionUsableForNandEmu(currentPartition)); + //if limiter = 9 error m_btnMgr.setText(m_configLblPartition, upperCase(DeviceName[currentPartition])); } else if(m_btnMgr.selected(m_nandemuBtnBack))