-from now on wiiflow will save the current coverflow view on game

boot, as soon as you boot wiiflow again/return to wiiflow you will
return to this view once, if you boot wiiflow again then you will
be back in normal wii games view until you boot another game
This commit is contained in:
fix94.1 2013-01-10 18:12:15 +00:00
parent f52967ac7a
commit 0041618cb1
3 changed files with 15 additions and 1 deletions

View File

@ -604,6 +604,7 @@ private:
bool enable_wmote_roll;
bool m_cfNeedsUpdate;
bool LastViewRequested(void);
void SetupInput(bool reset_pos = false);
void ScanInput(void);

View File

@ -769,6 +769,8 @@ void CMenu::directlaunch(const char *GameID)
void CMenu::_launch(dir_discHdr *hdr)
{
/* So WiiFlow knows where we are */
m_cfg.setInt("GENERAL", "last_view", m_current_view);
/* Lets boot that shit */
if(hdr->type == TYPE_WII_GAME)
_launchGame(hdr, false);

View File

@ -212,6 +212,14 @@ void CMenu::exitHandler(int ExitTo)
Sys_ExitTo(ExitTo);
}
bool CMenu::LastViewRequested(void)
{
int view = m_cfg.getInt("GENERAL", "last_view", COVERFLOW_MAX);
if(view < COVERFLOW_USB || view >= COVERFLOW_MAX)
return false;
return true;
}
int CMenu::main(void)
{
wstringEx curLetter;
@ -239,8 +247,11 @@ int CMenu::main(void)
m_GameTDBLoaded = true;
m_gametdb.CloseFile();
}
if(m_Emulator_boot)
if(LastViewRequested())
m_current_view = m_cfg.getInt("GENERAL", "last_view");
else if(m_Emulator_boot)
m_current_view = COVERFLOW_PLUGIN;
m_cfg.remove("GENERAL", "last_view");
if(m_cfg.getBool("GENERAL", "update_cache", false))
{