Skip to content

Commit

Permalink
- added 'Lock coverflow layouts' option to page 12 of main settings. …
Browse files Browse the repository at this point in the history
…set to yes this will disable the 1 and 2 buttons to keep users from switching flow layouts.
  • Loading branch information
Fledge68 committed Mar 6, 2019
1 parent cba6c0b commit e1880e9
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 2 deletions.
Binary file modified out/boot.dol
Binary file not shown.
1 change: 1 addition & 0 deletions source/menu/menu.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class CMenu
bool m_newGame;
bool show_mem;
bool cacheCovers;
bool CFLocked;
vector<dir_discHdr> m_gameList;

struct SZone
Expand Down
11 changes: 11 additions & 0 deletions source/menu/menu_config7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ void CMenu::_showConfig7(int curPage)
m_btnMgr.show(m_config7Btn1);
m_btnMgr.show(m_config7Lbl2);
m_btnMgr.show(m_config7Btn2);
m_btnMgr.show(m_config7Lbl3);
m_btnMgr.show(m_config7Btn3);
}
else
{
Expand Down Expand Up @@ -154,6 +156,8 @@ void CMenu::_showConfig7(int curPage)
m_btnMgr.setText(m_config7Btn1, _t("cfg14", L"Set"));
m_btnMgr.setText(m_config7Lbl2, _t("cfg723", L"Source menu settings"));
m_btnMgr.setText(m_config7Btn2, _t("cfg14", L"Set"));
m_btnMgr.setText(m_config7Lbl3, _t("cfg724", L"Lock coverflow layouts"));
m_btnMgr.setText(m_config7Btn3, m_cfg.getBool("general", "cf_locked") ? _t("yes", L"Yes") : _t("no", L"No"));
}
}

Expand Down Expand Up @@ -316,6 +320,13 @@ int CMenu::_config7(int curPage)
_CfgSrc();
_showConfig7(12);
}
else if(m_btnMgr.selected(m_config7Btn3))
{
bool val = !m_cfg.getBool("general", "cf_locked");
m_cfg.setBool("general", "cf_locked", val);
m_btnMgr.setText(m_config7Btn3, val ? _t("yes", L"Yes") : _t("no", L"No"));
CFLocked = val;
}
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion source/menu/menu_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ void CMenu::_game(bool launch)
_startVideo();
}
/* switch coverflow layout */
else if((BTN_1_PRESSED || BTN_2_PRESSED) && !coverFlipped && !m_video_playing)
else if((BTN_1_PRESSED || BTN_2_PRESSED) && !CFLocked && !coverFlipped && !m_video_playing)
{
u32 curPos = CoverFlow._currentPos();
s8 direction = BTN_1_PRESSED ? 1 : -1;
Expand Down
3 changes: 2 additions & 1 deletion source/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ int CMenu::main(void)
bool bUsed = false;// bused to indicate that it was actually used for something
m_emuSaveNand = false;
m_reload = false;
CFLocked = m_cfg.getBool("GENERAL", "cf_locked", false);
u32 disc_check = 0;

m_prev_view = 0;
Expand Down Expand Up @@ -615,7 +616,7 @@ int CMenu::main(void)
}

/* change coverflow layout/mode */
else if(BTN_1_PRESSED || BTN_2_PRESSED)
else if((BTN_1_PRESSED || BTN_2_PRESSED) && !CFLocked)
{
u32 curPos = CoverFlow._currentPos();
s8 direction = BTN_1_PRESSED ? 1 : -1;
Expand Down
1 change: 1 addition & 0 deletions wii/wiiflow/Languages/english.ini
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ cfg720=Play GC banner sound
cfg721=Play GC default sound
cfg722=Homebrew settings
cfg723=Source menu settings
cfg724=Lock coverflow layouts
cfga2=Install game
cfga3=Install
cfga6=Language
Expand Down

0 comments on commit e1880e9

Please sign in to comment.