-fixed not found emu nand partition if you did use the source menu and partition switch feature in a certain way

This commit is contained in:
fix94.1 2013-10-03 23:26:22 +00:00
parent 040459dcaa
commit 570dd16c10

View File

@ -1162,6 +1162,7 @@ void CMenu::_setPartition(s8 direction)
if(m_current_view == COVERFLOW_CHANNEL && neek2o()) if(m_current_view == COVERFLOW_CHANNEL && neek2o())
return; return;
_cfNeedsUpdate(); _cfNeedsUpdate();
int FS_Type = 0;
if(direction != 0) if(direction != 0)
{ {
bool switch_to_real = true; bool switch_to_real = true;
@ -1174,7 +1175,6 @@ void CMenu::_setPartition(s8 direction)
bool NeedFAT = m_current_view == COVERFLOW_CHANNEL || m_current_view == COVERFLOW_DML; bool NeedFAT = m_current_view == COVERFLOW_CHANNEL || m_current_view == COVERFLOW_DML;
u8 limiter = 0; u8 limiter = 0;
int FS_Type = 0;
do do
{ {
currentPartition = loopNum(currentPartition + direction, 10); currentPartition = loopNum(currentPartition + direction, 10);
@ -1197,6 +1197,8 @@ void CMenu::_setPartition(s8 direction)
m_cfg.setInt(WII_DOMAIN, "savepartition", currentPartition); m_cfg.setInt(WII_DOMAIN, "savepartition", currentPartition);
else else
{ {
if(direction == 0 || (direction != 0 && (m_current_view != COVERFLOW_CHANNEL ||
(FS_Type != -1 && DeviceHandle.IsInserted(currentPartition)))))
m_cfg.setInt(_domainFromView(), "partition", currentPartition); m_cfg.setInt(_domainFromView(), "partition", currentPartition);
vector<bool> plugin_list = m_plugin.GetEnabledPlugins(m_cfg, &enabledPluginsCount); vector<bool> plugin_list = m_plugin.GetEnabledPlugins(m_cfg, &enabledPluginsCount);
if(enabledPluginsCount == 1) if(enabledPluginsCount == 1)