mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-24 04:09:15 +01:00
-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:
parent
f52967ac7a
commit
0041618cb1
@ -604,6 +604,7 @@ private:
|
||||
bool enable_wmote_roll;
|
||||
|
||||
bool m_cfNeedsUpdate;
|
||||
bool LastViewRequested(void);
|
||||
|
||||
void SetupInput(bool reset_pos = false);
|
||||
void ScanInput(void);
|
||||
|
@ -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);
|
||||
|
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user