mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2025-01-12 11:59:08 +01:00
-fixed problem of not reloading covers, only after moving
it around a bit (issue 51) -removed some completely useless call of stop cover loader -added proper debug prints to see when cover loader is changed
This commit is contained in:
parent
05e8e8f12c
commit
97f6d84ff8
@ -625,17 +625,21 @@ void CCoverFlow::stopCoverLoader(bool empty)
|
|||||||
m_items[i].state = CCoverFlow::STATE_Loading;
|
m_items[i].state = CCoverFlow::STATE_Loading;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
gprintf("Coverflow stopped!\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCoverFlow::startCoverLoader(void)
|
void CCoverFlow::startCoverLoader(void)
|
||||||
{
|
{
|
||||||
if (m_covers.empty() || coverLoaderThread != LWP_THREAD_NULL || m_loadingCovers) return;
|
if(m_covers.empty() || coverLoaderThread != LWP_THREAD_NULL || m_loadingCovers)
|
||||||
|
return;
|
||||||
|
|
||||||
m_loadingCovers = true;
|
m_loadingCovers = true;
|
||||||
|
m_moved = true;
|
||||||
|
|
||||||
unsigned int stack_size = (unsigned int)8192;
|
unsigned int stack_size = (unsigned int)8192;
|
||||||
LWP_CreateThread(&coverLoaderThread, (void *(*)(void *))CCoverFlow::_coverLoader, (void *)this, 0, stack_size, 40);
|
LWP_CreateThread(&coverLoaderThread, (void *(*)(void *))CCoverFlow::_coverLoader, (void *)this, 0, stack_size, 40);
|
||||||
|
gprintf("Coverflow started!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CCoverFlow::clear(void)
|
void CCoverFlow::clear(void)
|
||||||
@ -1823,7 +1827,6 @@ bool CCoverFlow::start(const char *id)
|
|||||||
m_jump = 0;
|
m_jump = 0;
|
||||||
m_selected = false;
|
m_selected = false;
|
||||||
m_moved = true;
|
m_moved = true;
|
||||||
gprintf("Coverflow started!\n");
|
|
||||||
if (id == 0 || !findId(id, true))
|
if (id == 0 || !findId(id, true))
|
||||||
_loadAllCovers(0);
|
_loadAllCovers(0);
|
||||||
_updateAllTargets();
|
_updateAllTargets();
|
||||||
|
@ -345,7 +345,6 @@ void CMenu::_game(bool launch)
|
|||||||
if(!launch)
|
if(!launch)
|
||||||
{
|
{
|
||||||
SetupInput();
|
SetupInput();
|
||||||
m_cf.stopCoverLoader();
|
|
||||||
_playGameSound();
|
_playGameSound();
|
||||||
_showGame();
|
_showGame();
|
||||||
m_gameSelected = true;
|
m_gameSelected = true;
|
||||||
@ -354,7 +353,8 @@ void CMenu::_game(bool launch)
|
|||||||
s8 startGameSound = 1;
|
s8 startGameSound = 1;
|
||||||
while(true)
|
while(true)
|
||||||
{
|
{
|
||||||
if(startGameSound < 1) startGameSound++;
|
if(startGameSound < 1)
|
||||||
|
startGameSound++;
|
||||||
|
|
||||||
string id(m_cf.getId());
|
string id(m_cf.getId());
|
||||||
u64 chantitle = m_cf.getChanTitle();
|
u64 chantitle = m_cf.getChanTitle();
|
||||||
@ -573,7 +573,8 @@ void CMenu::_game(bool launch)
|
|||||||
if (m_gameLblUser[i] != -1u)
|
if (m_gameLblUser[i] != -1u)
|
||||||
m_btnMgr.show(m_gameLblUser[i]);
|
m_btnMgr.show(m_gameLblUser[i]);
|
||||||
|
|
||||||
if (!m_locked) {
|
if (!m_locked)
|
||||||
|
{
|
||||||
b = m_gcfg1.getBool("ADULTONLY", id, false);
|
b = m_gcfg1.getBool("ADULTONLY", id, false);
|
||||||
m_btnMgr.show(b ? m_gameBtnAdultOn : m_gameBtnAdultOff);
|
m_btnMgr.show(b ? m_gameBtnAdultOn : m_gameBtnAdultOff);
|
||||||
m_btnMgr.hide(b ? m_gameBtnAdultOff : m_gameBtnAdultOn);
|
m_btnMgr.hide(b ? m_gameBtnAdultOff : m_gameBtnAdultOn);
|
||||||
@ -599,7 +600,6 @@ void CMenu::_game(bool launch)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
m_gcfg1.save(true);
|
m_gcfg1.save(true);
|
||||||
|
|
||||||
_hideGame();
|
_hideGame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user