-fixed cache not reloading after copying gamecube game

from usb to sd
This commit is contained in:
fix94.1 2012-04-04 12:22:01 +00:00
parent 9a19de1545
commit 9607e68ef2

View File

@ -429,7 +429,7 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)
break;
}
}
//
if (m_thrdMessageAdded)
{
LockMutex lock(m_mutex);
@ -446,16 +446,26 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)
if (done && (op == CMenu::WO_REMOVE_GAME || op == CMenu::WO_ADD_GAME))
{
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
if( upd_dml )
if(upd_dml)
UpdateCache(COVERFLOW_DML);
if( upd_usb )
if(upd_usb)
UpdateCache(COVERFLOW_USB);
_loadList();
_initCF();
m_cf.findId(cfPos.c_str(), true);
}
else if(done && op == CMenu::WO_COPY_GAME)
{
m_gameList.SetLanguage(m_loc.getString(m_curLanguage, "gametdb_code", "EN").c_str());
if(upd_dml)
{
UpdateCache(COVERFLOW_DML);
currentPartition = SD;
UpdateCache(COVERFLOW_DML);
}
}
return done;
}