Skip to content

Commit

Permalink
- moved source menu settings to page 12 of main settings. no more pre…
Browse files Browse the repository at this point in the history
…ssing 'home' while viewing the source menu/flow.
  • Loading branch information
Fledge68 committed Mar 6, 2019
1 parent 5dc8212 commit cba6c0b
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 49 deletions.
Binary file modified out/boot.dol
Binary file not shown.
12 changes: 6 additions & 6 deletions source/menu/menu_config7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ void CMenu::_showConfig7(int curPage)
{
m_btnMgr.show(m_config7Lbl1);
m_btnMgr.show(m_config7Btn1);
//m_btnMgr.show(m_config7Lbl2);
//m_btnMgr.show(m_config7Btn2);
m_btnMgr.show(m_config7Lbl2);
m_btnMgr.show(m_config7Btn2);
}
else
{
Expand Down Expand Up @@ -152,8 +152,8 @@ void CMenu::_showConfig7(int curPage)
{
m_btnMgr.setText(m_config7Lbl1, _t("cfg722", L"Homebrew settings"));
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_config7Lbl2, _t("cfg723", L"Source menu settings"));
m_btnMgr.setText(m_config7Btn2, _t("cfg14", L"Set"));
}
}

Expand Down Expand Up @@ -310,12 +310,12 @@ int CMenu::_config7(int curPage)
_CfgHB();
_showConfig7(12);
}
/*else if(m_btnMgr.selected(m_config7Btn2))
else if(m_btnMgr.selected(m_config7Btn2))
{
_hideConfig7();
_CfgSrc();
_showConfig7(12);
}*/
}
}
}
}
Expand Down
39 changes: 23 additions & 16 deletions source/menu/menu_config_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,20 @@ static void _showCfgSrc(bool m_sourceflow)

void CMenu::_CfgSrc(void)
{
if(!m_use_source)
{
error(_t("cfgsmerr", L"No source menu found!"));
return;
}
SetupInput();
_setBg(m_cfgsrcBg, m_cfgsrcBg);
m_btnMgr.setText(m_cfgsrcBtnEnableSF, m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled") ? _t("on", L"On") : _t("off", L"Off"));
m_btnMgr.setText(m_cfgsrcBtnSmallbox, m_cfg.getBool(SOURCEFLOW_DOMAIN, "smallbox") ? _t("on", L"On") : _t("off", L"Off"));
m_btnMgr.setText(m_cfgsrcBtnBoxMode, m_cfg.getBool(SOURCEFLOW_DOMAIN, "box_mode") ? _t("on", L"On") : _t("off", L"Off"));
m_btnMgr.setText(m_cfgsrcBtnMultisource, m_cfg.getBool("GENERAL", "multisource") ? _t("on", L"On") : _t("off", L"Off"));
_showCfgSrc(m_sourceflow);

_showCfgSrc(m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled", false));
bool temp;

while(!m_exit)
{
_mainLoopCommon();
Expand All @@ -112,31 +118,32 @@ void CMenu::_CfgSrc(void)
break;
else if(m_btnMgr.selected(m_cfgsrcBtnEnableSF))
{
m_sourceflow = !m_sourceflow;
m_cfg.setBool(SOURCEFLOW_DOMAIN, "enabled", m_sourceflow);
m_btnMgr.setText(m_cfgsrcBtnEnableSF, m_sourceflow ? _t("on", L"On") : _t("off", L"Off"));
_showCfgSrc(m_sourceflow);
temp = !m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled", false);
m_cfg.setBool(SOURCEFLOW_DOMAIN, "enabled", temp);
m_btnMgr.setText(m_cfgsrcBtnEnableSF, temp ? _t("on", L"On") : _t("off", L"Off"));
_showCfgSrc(temp);
}
else if(m_btnMgr.selected(m_cfgsrcBtnSmallbox))
{
m_refreshGameList = true;
//fsop_deleteFolder(fmt("%s/sourceflow", m_cacheDir.c_str()));
m_cfg.setBool(SOURCEFLOW_DOMAIN, "smallbox", !m_cfg.getBool(SOURCEFLOW_DOMAIN, "smallbox", false));
m_btnMgr.setText(m_cfgsrcBtnSmallbox, m_cfg.getBool(SOURCEFLOW_DOMAIN, "smallbox") ? _t("on", L"On") : _t("off", L"Off"));
temp = !m_cfg.getBool(SOURCEFLOW_DOMAIN, "smallbox", false);
m_cfg.setBool(SOURCEFLOW_DOMAIN, "smallbox", temp);
m_btnMgr.setText(m_cfgsrcBtnSmallbox, temp ? _t("on", L"On") : _t("off", L"Off"));
}
else if(m_btnMgr.selected(m_cfgsrcBtnBoxMode))
{
m_refreshGameList = true;
//fsop_deleteFolder(fmt("%s/sourceflow", m_cacheDir.c_str()));
m_cfg.setBool(SOURCEFLOW_DOMAIN, "box_mode", !m_cfg.getBool(SOURCEFLOW_DOMAIN, "box_mode", false));
m_btnMgr.setText(m_cfgsrcBtnBoxMode, m_cfg.getBool(SOURCEFLOW_DOMAIN, "box_mode") ? _t("on", L"On") : _t("off", L"Off"));
temp = !m_cfg.getBool(SOURCEFLOW_DOMAIN, "box_mode", false);
m_cfg.setBool(SOURCEFLOW_DOMAIN, "box_mode", temp);
m_btnMgr.setText(m_cfgsrcBtnBoxMode, temp ? _t("on", L"On") : _t("off", L"Off"));
}
else if(m_btnMgr.selected(m_cfgsrcBtnAdjustCF))
{
m_refreshGameList = true;
_hideCfgSrc(true);
m_sourceflow = true;
_showCF(true);
_cfTheme();
_showCfgSrc(m_sourceflow);
m_sourceflow = false;
_showCF(true);
_showCfgSrc(true);
}
else if(m_btnMgr.selected(m_cfgsrcBtnMultisource))
{
Expand Down
31 changes: 6 additions & 25 deletions source/menu/menu_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -382,34 +382,15 @@ int CMenu::main(void)
if(BTN_HOME_PRESSED)
{
_hideMain();
/* sourceflow config menu */
if(m_sourceflow)
{
_CfgSrc();
if(BTN_B_HELD)
{
bheld = true;
bUsed = true;
}
if(!m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled"))
{
m_sourceflow = false;
m_refreshGameList = true;
}
_showMain();
}
/* Home menu */
else
if(_Home())
break;// exit wiiflow
if(BTN_B_HELD)
{
if(_Home())
break;// exit wiiflow
if(BTN_B_HELD)
{
bheld = true;
bUsed = true;
}
_showMain();
bheld = true;
bUsed = true;
}
_showMain();
}
else if(BTN_A_PRESSED)
{
Expand Down
2 changes: 2 additions & 0 deletions source/menu/menu_wbfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,8 @@ bool CMenu::_wbfsOp(CMenu::WBFS_OP op)

SetupInput();
_showWBFS(op);
m_btnMgr.show(m_wbfsLblMessage);
m_btnMgr.setText(m_wbfsLblMessage, _t("wbfsop27", L"Or press 'B' to go back."));
switch (op)
{
case WO_ADD_GAME:
Expand Down
6 changes: 4 additions & 2 deletions wii/wiiflow/Languages/english.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ cfg718=Source Menu on start
cfg719=Mount SD only
cfg720=Play GC banner sound
cfg721=Play GC default sound
cfg722=Homebrew settings
cfg723=Source menu settings
cfga2=Install game
cfga3=Install
cfga6=Language
Expand Down Expand Up @@ -223,6 +225,7 @@ cfgsm1=Source Menu Settings
cfgsm3=Enable Sourceflow
cfgsm4=Sourceflow Smallbox
cfgsm5=Clear Sourceflow Cache
cfgsmerr=No source menu found!
cfghb1=Homebrew Settings
cfghb2=Coverflow Smallbox
cfghb3=Homebrew Partition
Expand Down Expand Up @@ -331,8 +334,6 @@ errgame17=Can not delete real NAND Channels!
errgame18=No game info!
errgame19=Can't launch in Wii virtual console mode!
errneek1=Cannot launch neek2o. Verify your neek2o setup
errsource1=Homebrew locked!
errsource2=Homebrew and multisource not allowed!
exit_to=Exit To
ftp1=Start
ftp2=Stop
Expand Down Expand Up @@ -486,6 +487,7 @@ wbfsop23=Calculating space needed for %s...\n Please insert disc %d to continue
wbfsop24=Not enough space: %d blocks needed, %d available
wbfsop25=Disc read error!! Please clean the disc
wbfsop26=Disc ejected!! Please insert disc again
wbfsop27=Or press'B' to go back.
wbfsop4=Back
wbfsop5=Go
wbfsop6=Installing [%s] %s...
Expand Down

0 comments on commit cba6c0b

Please sign in to comment.