diff --git a/source/menu/menu_config.cpp b/source/menu/menu_config.cpp index c10e1b46..dae220c6 100644 --- a/source/menu/menu_config.cpp +++ b/source/menu/menu_config.cpp @@ -186,14 +186,14 @@ int CMenu::_config1(void) bool disable = m_current_view == COVERFLOW_CHANNEL && m_cfg.getBool("NAND", "disable", true); if(!disable) { - bool isD2Xv7 = IOS_GetRevision() % 100 == 7; + bool isD2XnewerThanV6 = IOS_GetRevision() % 100 > 6; u8 limiter = 0; s8 direction = m_btnMgr.selected(m_configBtnPartitionP) ? 1 : -1; currentPartition = loopNum(currentPartition + direction, (int)USB8); while(!DeviceHandler::Instance()->IsInserted(currentPartition) || (m_current_view == COVERFLOW_CHANNEL && (DeviceHandler::Instance()->GetFSType(currentPartition) != PART_FS_FAT || - (!isD2Xv7 && DeviceHandler::Instance()->PathToDriveType(m_appDir.c_str()) == currentPartition) || - (!isD2Xv7 && DeviceHandler::Instance()->PathToDriveType(m_dataDir.c_str()) == currentPartition))) || + (!isD2XnewerThanV6 && DeviceHandler::Instance()->PathToDriveType(m_appDir.c_str()) == currentPartition) || + (!isD2XnewerThanV6 && DeviceHandler::Instance()->PathToDriveType(m_dataDir.c_str()) == currentPartition))) || (m_current_view == COVERFLOW_HOMEBREW && DeviceHandler::Instance()->GetFSType(currentPartition) == PART_FS_WBFS)) { currentPartition = loopNum(currentPartition + direction, (int)USB8); diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index eadafbd1..fcb3766f 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -329,13 +329,13 @@ int CMenu::main(void) _showWaitMessage(); _hideMain(); - bool isD2Xv7 = IOS_GetRevision() % 100 == 7; + bool isD2XnewerThanV6 = IOS_GetRevision() % 100 > 6; u8 limiter = 0; currentPartition = loopNum(currentPartition + 1, (int)USB8); while(!DeviceHandler::Instance()->IsInserted(currentPartition) || (m_current_view == COVERFLOW_CHANNEL && (DeviceHandler::Instance()->GetFSType(currentPartition) != PART_FS_FAT || - (!isD2Xv7 && DeviceHandler::Instance()->PathToDriveType(m_appDir.c_str()) == currentPartition) || - (!isD2Xv7 && DeviceHandler::Instance()->PathToDriveType(m_dataDir.c_str()) == currentPartition))) || + (!isD2XnewerThanV6 && DeviceHandler::Instance()->PathToDriveType(m_appDir.c_str()) == currentPartition) || + (!isD2XnewerThanV6 && DeviceHandler::Instance()->PathToDriveType(m_dataDir.c_str()) == currentPartition))) || (m_current_view == COVERFLOW_HOMEBREW && DeviceHandler::Instance()->GetFSType(currentPartition) == PART_FS_WBFS)) { currentPartition = loopNum(currentPartition + 1, (int)USB8);