- added 'Lock coverflow layouts' option to page 12 of main settings. set to yes this will disable the 1 and 2 buttons to keep users from switching flow layouts.

This commit is contained in:
Fledge68 2019-03-06 12:52:12 -06:00
parent cba6c0bcd6
commit e1880e9fd4
6 changed files with 16 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 MiB

After

Width:  |  Height:  |  Size: 3.3 MiB

View File

@ -62,6 +62,7 @@ private:
bool m_newGame; bool m_newGame;
bool show_mem; bool show_mem;
bool cacheCovers; bool cacheCovers;
bool CFLocked;
vector<dir_discHdr> m_gameList; vector<dir_discHdr> m_gameList;
struct SZone struct SZone

View File

@ -72,6 +72,8 @@ void CMenu::_showConfig7(int curPage)
m_btnMgr.show(m_config7Btn1); m_btnMgr.show(m_config7Btn1);
m_btnMgr.show(m_config7Lbl2); m_btnMgr.show(m_config7Lbl2);
m_btnMgr.show(m_config7Btn2); m_btnMgr.show(m_config7Btn2);
m_btnMgr.show(m_config7Lbl3);
m_btnMgr.show(m_config7Btn3);
} }
else else
{ {
@ -154,6 +156,8 @@ void CMenu::_showConfig7(int curPage)
m_btnMgr.setText(m_config7Btn1, _t("cfg14", L"Set")); m_btnMgr.setText(m_config7Btn1, _t("cfg14", L"Set"));
m_btnMgr.setText(m_config7Lbl2, _t("cfg723", L"Source menu settings")); m_btnMgr.setText(m_config7Lbl2, _t("cfg723", L"Source menu settings"));
m_btnMgr.setText(m_config7Btn2, _t("cfg14", L"Set")); 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"));
} }
} }
@ -316,6 +320,13 @@ int CMenu::_config7(int curPage)
_CfgSrc(); _CfgSrc();
_showConfig7(12); _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;
}
} }
} }
} }

View File

@ -573,7 +573,7 @@ void CMenu::_game(bool launch)
_startVideo(); _startVideo();
} }
/* switch coverflow layout */ /* 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(); u32 curPos = CoverFlow._currentPos();
s8 direction = BTN_1_PRESSED ? 1 : -1; s8 direction = BTN_1_PRESSED ? 1 : -1;

View File

@ -289,6 +289,7 @@ int CMenu::main(void)
bool bUsed = false;// bused to indicate that it was actually used for something bool bUsed = false;// bused to indicate that it was actually used for something
m_emuSaveNand = false; m_emuSaveNand = false;
m_reload = false; m_reload = false;
CFLocked = m_cfg.getBool("GENERAL", "cf_locked", false);
u32 disc_check = 0; u32 disc_check = 0;
m_prev_view = 0; m_prev_view = 0;
@ -615,7 +616,7 @@ int CMenu::main(void)
} }
/* change coverflow layout/mode */ /* 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(); u32 curPos = CoverFlow._currentPos();
s8 direction = BTN_1_PRESSED ? 1 : -1; s8 direction = BTN_1_PRESSED ? 1 : -1;

View File

@ -65,6 +65,7 @@ cfg720=Play GC banner sound
cfg721=Play GC default sound cfg721=Play GC default sound
cfg722=Homebrew settings cfg722=Homebrew settings
cfg723=Source menu settings cfg723=Source menu settings
cfg724=Lock coverflow layouts
cfga2=Install game cfga2=Install game
cfga3=Install cfga3=Install
cfga6=Language cfga6=Language