mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
-we should only delete cover too if the user wants it
(set delete_cover_and_game=true in [GENERAL] if you want)
This commit is contained in:
parent
4d95af1ab3
commit
27f5d760dc
@ -111,6 +111,7 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)
|
|||||||
static discHdr header ATTRIBUTE_ALIGN(32);
|
static discHdr header ATTRIBUTE_ALIGN(32);
|
||||||
bool done = false;
|
bool done = false;
|
||||||
bool out = false;
|
bool out = false;
|
||||||
|
bool del_cover = false;
|
||||||
struct AutoLight { AutoLight(void) { } ~AutoLight(void) { slotLight(false); } } aw;
|
struct AutoLight { AutoLight(void) { } ~AutoLight(void) { slotLight(false); } } aw;
|
||||||
string cfPos = m_cf.getNextId();
|
string cfPos = m_cf.getNextId();
|
||||||
|
|
||||||
@ -191,7 +192,9 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)
|
|||||||
break;
|
break;
|
||||||
case CMenu::WO_REMOVE_GAME:
|
case CMenu::WO_REMOVE_GAME:
|
||||||
WBFS_RemoveGame((u8 *)m_cf.getId().c_str(), (char *) m_cf.getHdr()->path);
|
WBFS_RemoveGame((u8 *)m_cf.getId().c_str(), (char *) m_cf.getHdr()->path);
|
||||||
RemoveCover( (char *)m_cf.getId().c_str() );
|
del_cover = m_cfg.getBool("GENERAL", "delete_cover_and_game", false);
|
||||||
|
if(del_cover)
|
||||||
|
RemoveCover((char *)m_cf.getId().c_str());
|
||||||
m_btnMgr.show(m_wbfsPBar);
|
m_btnMgr.show(m_wbfsPBar);
|
||||||
m_btnMgr.setProgress(m_wbfsPBar, 0.f, true);
|
m_btnMgr.setProgress(m_wbfsPBar, 0.f, true);
|
||||||
m_btnMgr.setProgress(m_wbfsPBar, 1.f);
|
m_btnMgr.setProgress(m_wbfsPBar, 1.f);
|
||||||
|
Loading…
Reference in New Issue
Block a user