mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
-fix for source menu cat_page to be remembered when returning to wiiflow after playing a game.
This commit is contained in:
parent
609bf29dbb
commit
ff3504d691
@ -306,7 +306,13 @@ int CMenu::main(void)
|
|||||||
m_cfg.save();
|
m_cfg.save();
|
||||||
if(m_current_view == COVERFLOW_MAX)
|
if(m_current_view == COVERFLOW_MAX)
|
||||||
m_combined_view = true;
|
m_combined_view = true;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
s8 lastSrc = m_cfg.getInt("GENERAL", "last_source_btn", -1);
|
||||||
|
if(lastSrc >= 0 )
|
||||||
|
m_catStartPage = m_source.getInt(fmt("BUTTON_%i", lastSrc), "cat_page", 1);
|
||||||
|
}
|
||||||
|
m_cfg.setInt("GENERAL", "last_source_btn", -1);
|
||||||
if(m_cfg.getBool("GENERAL", "update_cache", false))
|
if(m_cfg.getBool("GENERAL", "update_cache", false))
|
||||||
UpdateCache();
|
UpdateCache();
|
||||||
LoadView();
|
LoadView();
|
||||||
|
@ -598,6 +598,7 @@ bool CMenu::_Source()
|
|||||||
string source = m_source.getString(btn_selected, "source", "");
|
string source = m_source.getString(btn_selected, "source", "");
|
||||||
if(BTN_A_PRESSED)
|
if(BTN_A_PRESSED)
|
||||||
{
|
{
|
||||||
|
m_cfg.setInt("GENERAL", "last_source_btn", i + j);
|
||||||
_clearSources();
|
_clearSources();
|
||||||
exitSource = true;
|
exitSource = true;
|
||||||
m_catStartPage = 1;
|
m_catStartPage = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user