diff --git a/out/boot.dol b/out/boot.dol index 9a01eebb..898deeb8 100644 Binary files a/out/boot.dol and b/out/boot.dol differ diff --git a/source/menu/menu.cpp b/source/menu/menu.cpp index 425c70f7..0a0290fe 100644 --- a/source/menu/menu.cpp +++ b/source/menu/menu.cpp @@ -1275,7 +1275,7 @@ void CMenu::_buildMenus(void) _initGameSettingsMenu(); _initCheatSettingsMenu(); _initSourceMenu(); - _initCfgSrc(); + _initConfigSrc(); _initConfigHB(); _initPluginSettingsMenu(); _initCategorySettingsMenu(); @@ -1981,6 +1981,7 @@ void CMenu::_updateText(void) _textConfigGC(); _textPartitionsCfg(); _textConfigHB(); + _textConfigSrc(); _textGame(); _textDownload(); _textCode(); diff --git a/source/menu/menu.hpp b/source/menu/menu.hpp index 7ed7a3b1..675a2467 100644 --- a/source/menu/menu.hpp +++ b/source/menu/menu.hpp @@ -882,7 +882,7 @@ private: void _initGameSettingsMenu(); void _initCheatSettingsMenu(); void _initSourceMenu(); - void _initCfgSrc(); + void _initConfigSrc(); void _initConfigHB(); void _initPluginSettingsMenu(); void _initCategorySettingsMenu(); @@ -896,7 +896,7 @@ private: void _initCheckboxesMenu(); // void _textSource(void); - void _textCfgSrc(void); + void _textConfigSrc(void); void _textConfigHB(void); void _textPluginSettings(void); void _textCategorySettings(void); @@ -930,6 +930,7 @@ private: void _hideConfigButtons(bool instant = false); void _hideConfigGC(bool instant = true); void _hideConfigHB(bool instant = true); + void _hideConfigSrc(bool instant = true); void _hidePartitionsCfg(bool instant = false); void _hideGame(bool instant = false); void _hideDownload(bool instant = false); @@ -962,6 +963,7 @@ private: void _showConfigMain(int curPage); void _showConfigGC(int curPage); void _showConfigHB(void); + void _showConfigSrc(bool m_sourceflow = false); void _showPartitionsCfg(void); void _showNandEmu(void); void _showGame(void); @@ -1012,6 +1014,8 @@ private: // void _configMain(void); void _configGC(void); + void _ConfigSrc(); + void _ConfigHB(); void _partitionsCfg(void); int _NandEmuCfg(void); int _AutoExtractSave(string gameId); @@ -1034,8 +1038,6 @@ private: void _Wad(const char *wad_path = NULL); void _CheatSettings(); bool _Source(); - void _CfgSrc(); - void _ConfigHB(); void _PluginSettings(); void _checkboxesMenu(u8 md); void _SM_Editor(); diff --git a/source/menu/menu_boot.cpp b/source/menu/menu_config_boot.cpp similarity index 100% rename from source/menu/menu_boot.cpp rename to source/menu/menu_config_boot.cpp diff --git a/source/menu/menu_config_main.cpp b/source/menu/menu_config_main.cpp index f4523ec6..8699177a 100644 --- a/source/menu/menu_config_main.cpp +++ b/source/menu/menu_config_main.cpp @@ -881,7 +881,7 @@ void CMenu::_configMain(void) else if(m_btnMgr.selected(m_configBtn2)) { _hideConfigMain(); - _CfgSrc(); + _ConfigSrc(); _showConfigMain(12); } else if(m_btnMgr.selected(m_configBtn3)) diff --git a/source/menu/menu_config_source.cpp b/source/menu/menu_config_source.cpp index 4f0b0f14..3155fbd3 100644 --- a/source/menu/menu_config_source.cpp +++ b/source/menu/menu_config_source.cpp @@ -5,21 +5,9 @@ s16 m_cfgsrcLblTitle; s16 m_cfgsrcBtnBack; s16 m_cfgsrcLblUser[4]; -s16 m_cfgsrcLblEnableSF; -s16 m_cfgsrcBtnEnableSF; - -s16 m_cfgsrcLblSmallbox; -s16 m_cfgsrcBtnSmallbox; - -s16 m_cfgsrcLblBoxMode; -s16 m_cfgsrcBtnBoxMode; - -s16 m_cfgsrcLblAdjustCF; -s16 m_cfgsrcBtnAdjustCF; - TexData m_cfgsrcBg; -static void _hideCfgSrc(bool instant) +void CMenu::_hideConfigSrc(bool instant) { m_btnMgr.hide(m_cfgsrcLblTitle, instant); m_btnMgr.hide(m_cfgsrcBtnBack, instant); @@ -27,55 +15,50 @@ static void _hideCfgSrc(bool instant) if(m_cfgsrcLblUser[i] != -1) m_btnMgr.hide(m_cfgsrcLblUser[i], instant); - m_btnMgr.hide(m_cfgsrcLblEnableSF, instant); - m_btnMgr.hide(m_cfgsrcBtnEnableSF, instant); - - m_btnMgr.hide(m_cfgsrcLblSmallbox, instant); - m_btnMgr.hide(m_cfgsrcBtnSmallbox, instant); - - m_btnMgr.hide(m_cfgsrcLblBoxMode, instant); - m_btnMgr.hide(m_cfgsrcBtnBoxMode, instant); - - m_btnMgr.hide(m_cfgsrcLblAdjustCF, instant); - m_btnMgr.hide(m_cfgsrcBtnAdjustCF, instant); + _hideConfigButtons(instant); } -static void _showCfgSrc(bool m_sourceflow) +void CMenu::_showConfigSrc(bool m_sourceflow) { + _setBg(m_cfgsrcBg, m_cfgsrcBg); m_btnMgr.show(m_cfgsrcLblTitle); m_btnMgr.show(m_cfgsrcBtnBack); for(u8 i = 0; i < ARRAY_SIZE(m_cfgsrcLblUser); ++i) if(m_cfgsrcLblUser[i] != -1) m_btnMgr.show(m_cfgsrcLblUser[i]); - m_btnMgr.show(m_cfgsrcLblEnableSF); - m_btnMgr.show(m_cfgsrcBtnEnableSF); + m_btnMgr.setText(m_configBtn1, m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled") ? _t("on", L"On") : _t("off", L"Off")); + m_btnMgr.show(m_configLbl1); + m_btnMgr.show(m_configBtn1); if(m_sourceflow) { - m_btnMgr.show(m_cfgsrcLblSmallbox); - m_btnMgr.show(m_cfgsrcBtnSmallbox); + m_btnMgr.setText(m_configBtn2, m_cfg.getBool(SOURCEFLOW_DOMAIN, "smallbox") ? _t("on", L"On") : _t("off", L"Off")); + m_btnMgr.setText(m_configBtn3, m_cfg.getBool(SOURCEFLOW_DOMAIN, "box_mode") ? _t("on", L"On") : _t("off", L"Off")); + + m_btnMgr.show(m_configLbl2); + m_btnMgr.show(m_configBtn2); - m_btnMgr.show(m_cfgsrcLblBoxMode); - m_btnMgr.show(m_cfgsrcBtnBoxMode); + m_btnMgr.show(m_configLbl3); + m_btnMgr.show(m_configBtn3); - m_btnMgr.show(m_cfgsrcLblAdjustCF); - m_btnMgr.show(m_cfgsrcBtnAdjustCF); + m_btnMgr.show(m_configLbl4); + m_btnMgr.show(m_configBtn4); } else { - m_btnMgr.hide(m_cfgsrcLblSmallbox, true); - m_btnMgr.hide(m_cfgsrcBtnSmallbox, true); + m_btnMgr.hide(m_configLbl2, true); + m_btnMgr.hide(m_configBtn2, true); - m_btnMgr.hide(m_cfgsrcLblBoxMode, true); - m_btnMgr.hide(m_cfgsrcBtnBoxMode, true); + m_btnMgr.hide(m_configLbl3, true); + m_btnMgr.hide(m_configBtn3, true); - m_btnMgr.hide(m_cfgsrcLblAdjustCF, true); - m_btnMgr.hide(m_cfgsrcBtnAdjustCF, true); + m_btnMgr.hide(m_configLbl4, true); + m_btnMgr.hide(m_configBtn4, true); } } -void CMenu::_CfgSrc(void) +void CMenu::_ConfigSrc(void) { if(!m_use_source) { @@ -83,11 +66,7 @@ void CMenu::_CfgSrc(void) 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")); - _showCfgSrc(m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled", false)); + _showConfigSrc(m_cfg.getBool(SOURCEFLOW_DOMAIN, "enabled", false)); bool temp; while(!m_exit) @@ -103,43 +82,42 @@ void CMenu::_CfgSrc(void) { if(m_btnMgr.selected(m_cfgsrcBtnBack)) break; - else if(m_btnMgr.selected(m_cfgsrcBtnEnableSF)) + else if(m_btnMgr.selected(m_configBtn1)) { 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); + _showConfigSrc(temp); } - else if(m_btnMgr.selected(m_cfgsrcBtnSmallbox)) + else if(m_btnMgr.selected(m_configBtn2)) { SF_cacheCovers = true; 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")); + m_btnMgr.setText(m_configBtn2, temp ? _t("on", L"On") : _t("off", L"Off")); } - else if(m_btnMgr.selected(m_cfgsrcBtnBoxMode)) + else if(m_btnMgr.selected(m_configBtn3)) { SF_cacheCovers = true; 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")); + m_btnMgr.setText(m_configBtn3, temp ? _t("on", L"On") : _t("off", L"Off")); } - else if(m_btnMgr.selected(m_cfgsrcBtnAdjustCF)) + else if(m_btnMgr.selected(m_configBtn4)) { - _hideCfgSrc(true); + _hideConfigSrc(true); m_sourceflow = true; _showCF(true); _cfTheme(); m_sourceflow = false; _showCF(true); - _showCfgSrc(true); + _showConfigSrc(true); } } } - _hideCfgSrc(false); + _hideConfigSrc(true); } -void CMenu::_initCfgSrc(void) +void CMenu::_initConfigSrc(void) { m_cfgsrcBg = _texture("CFG_SRC/BG", "texture", theme.bg, false); @@ -147,44 +125,20 @@ void CMenu::_initCfgSrc(void) m_cfgsrcLblTitle = _addLabel("CFG_SRC/TITLE", theme.titleFont, L"", 0, 10, 640, 60, theme.titleFontColor, FTGX_JUSTIFY_CENTER | FTGX_ALIGN_MIDDLE); m_cfgsrcBtnBack = _addButton("CFG_SRC/BACK_BTN", theme.btnFont, L"", 420, 400, 200, 48, theme.btnFontColor); - m_cfgsrcLblEnableSF = _addLabel("CFG_SRC/ENABLE_SF", theme.lblFont, L"", 20, 125, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE); - m_cfgsrcBtnEnableSF = _addButton("CFG_SRC/ENABLE_SF_BTN", theme.btnFont, L"", 420, 130, 200, 48, theme.btnFontColor); - - m_cfgsrcLblSmallbox = _addLabel("CFG_SRC/SF_SMALLBOX", theme.lblFont, L"", 20, 185, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE); - m_cfgsrcBtnSmallbox = _addButton("CFG_SRC/SF_SMALLBOX_BTN", theme.btnFont, L"", 420, 190, 200, 48, theme.btnFontColor); - - m_cfgsrcLblBoxMode = _addLabel("CFG_SRC/SF_BOXMODE", theme.lblFont, L"", 20, 245, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE); - m_cfgsrcBtnBoxMode = _addButton("CFG_SRC/SF_BOXMODE_BTN", theme.btnFont, L"", 420, 250, 200, 48, theme.btnFontColor); - - m_cfgsrcLblAdjustCF = _addLabel("CFG_SRC/SF_ADJUSTCF", theme.lblFont, L"", 20, 305, 385, 56, theme.lblFontColor, FTGX_JUSTIFY_LEFT | FTGX_ALIGN_MIDDLE); - m_cfgsrcBtnAdjustCF = _addButton("CFG_SRC/SF_ADJUSTCF_BTN", theme.btnFont, L"", 420, 310, 200, 48, theme.btnFontColor); - _setHideAnim(m_cfgsrcLblTitle, "CFG_SRC/TITLE", 0, 0, -2.f, 0.f); _setHideAnim(m_cfgsrcBtnBack, "CFG_SRC/BACK_BTN", 0, 0, 1.f, -1.f); - _setHideAnim(m_cfgsrcLblEnableSF, "CFG_SRC/ENABLE_SF", -50, 0, -2.f, 0.f); - _setHideAnim(m_cfgsrcBtnEnableSF, "CFG_SRC/ENABLE_SF_BTN", -50, 0, 1.f, 0.f); - - _setHideAnim(m_cfgsrcLblSmallbox, "CFG_SRC/SF_SMALLBOX", -50, 0, -2.f, 0.f); - _setHideAnim(m_cfgsrcBtnSmallbox, "CFG_SRC/SF_SMALLBOX_BTN", -50, 0, 1.f, 0.f); - - _setHideAnim(m_cfgsrcLblBoxMode, "CFG_SRC/SF_BOXMODE", -50, 0, -2.f, 0.f); - _setHideAnim(m_cfgsrcBtnBoxMode, "CFG_SRC/SF_BOXMODE_BTN", -50, 0, 1.f, 0.f); - - _setHideAnim(m_cfgsrcLblAdjustCF, "CFG_SRC/SF_ADJUSTCF", -50, 0, -2.f, 0.f); - _setHideAnim(m_cfgsrcBtnAdjustCF, "CFG_SRC/SF_ADJUSTCF_BTN", -50, 0, 1.f, 0.f); - - _hideCfgSrc(true); - _textCfgSrc(); + _hideConfigSrc(true); + _textConfigSrc(); } -void CMenu::_textCfgSrc(void) +void CMenu::_textConfigSrc(void) { m_btnMgr.setText(m_cfgsrcLblTitle, _t("cfgsm1", L"Sourceflow Settings")); - m_btnMgr.setText(m_cfgsrcLblEnableSF, _t("cfgsm3", L"Enable Sourceflow")); - m_btnMgr.setText(m_cfgsrcLblSmallbox, _t("cfgsm4", L"Sourceflow Smallbox")); - m_btnMgr.setText(m_cfgsrcLblBoxMode, _t("cfghb4", L"Box Mode")); - m_btnMgr.setText(m_cfgsrcLblAdjustCF, _t("cfgc4", L"Adjust Coverflow")); - m_btnMgr.setText(m_cfgsrcBtnAdjustCF, _t("cfgc5", L"Go")); + m_btnMgr.setText(m_configLbl1, _t("cfgsm3", L"Enable Sourceflow")); + m_btnMgr.setText(m_configLbl2, _t("cfgsm4", L"Sourceflow Smallbox")); + m_btnMgr.setText(m_configLbl3, _t("cfghb4", L"Box Mode")); + m_btnMgr.setText(m_configLbl4, _t("cfgc4", L"Adjust Coverflow")); + m_btnMgr.setText(m_configBtn4, _t("cfgc5", L"Go")); m_btnMgr.setText(m_cfgsrcBtnBack, _t("cfg10", L"Back")); } diff --git a/source/menu/menu_main.cpp b/source/menu/menu_main.cpp index ec4403d5..7fa00b92 100644 --- a/source/menu/menu_main.cpp +++ b/source/menu/menu_main.cpp @@ -464,7 +464,7 @@ int CMenu::main(void) } if(BTN_HOME_PRESSED || (BTN_A_PRESSED && m_btnMgr.selected(m_mainBtnHome))) { - if(m_sourceflow)// open Source Menu Editor Menu + if(m_sourceflow && !m_locked)// open Source Menu Editor Menu { _hideMain(); _SM_Editor(); @@ -1008,7 +1008,7 @@ void CMenu::_initMainMenu() TexData texFavOffS; TexData bgLQ; TexData emptyTex; - TexData texUser1; + //TexData texUser1; m_mainBg = _texture("MAIN/BG", "texture", theme.bg, false); if(m_theme.loaded() && TexHandle.fromImageFile(bgLQ, fmt("%s/%s", m_themeDataDir.c_str(), m_theme.getString("MAIN/BG", "texture").c_str()), GX_TF_CMPR, 64, 64) == TE_OK) @@ -1040,7 +1040,7 @@ void CMenu::_initMainMenu() TexHandle.fromImageFile(texFavOnS, fmt("%s/gamefavons.png", m_imgsDir.c_str())); TexHandle.fromImageFile(texFavOff, fmt("%s/gamefavoff.png", m_imgsDir.c_str())); TexHandle.fromImageFile(texFavOffS, fmt("%s/gamefavoffs.png", m_imgsDir.c_str())); - TexHandle.fromImageFile(texUser1, fmt("%s/mainUser1.png", m_imgsDir.c_str())); + //TexHandle.fromImageFile(texUser1, fmt("%s/mainUser1.png", m_imgsDir.c_str())); _addUserLabels(m_mainLblUser, ARRAY_SIZE(m_mainLblUser), "MAIN"); diff --git a/source/menu/menu_sm_editor.cpp b/source/menu/menu_sm_editor.cpp index 388d2e25..f3d9a038 100644 --- a/source/menu/menu_sm_editor.cpp +++ b/source/menu/menu_sm_editor.cpp @@ -508,7 +508,7 @@ void CMenu::_SM_Editor() /*else if(m_btnMgr.selected(m_configBtn4)) { _hideSM_Editor(); - _CfgSrc(); + _ConfigSrc(); _showSM_Editor(); }*/ } diff --git a/source/menu/menu_source.cpp b/source/menu/menu_source.cpp index bb47960a..b09e92f4 100644 --- a/source/menu/menu_source.cpp +++ b/source/menu/menu_source.cpp @@ -396,7 +396,7 @@ bool CMenu::_Source() else _updateSourceBtns(); } - else if(BTN_HOME_PRESSED) + else if(BTN_HOME_PRESSED && !m_locked) { _hideSource(); _SM_Editor(); diff --git a/wii/wiiflow/Languages/english.ini b/wii/wiiflow/Languages/english.ini index c0b34f77..45814cfd 100644 --- a/wii/wiiflow/Languages/english.ini +++ b/wii/wiiflow/Languages/english.ini @@ -520,7 +520,7 @@ wbfsoperr2=Disc_Open failed wbfsoperr3=This is not a Wii disc! wbfsoperr4=Game already installed wbfsoperr5=Deleting this Channel is not allowed! -wbfsoperr6=Install game is broken, please use cleanrip. +wbfsoperr6=Install game is broken, \nplease use cleanrip. wbfsprogress=%i%% wbfsremdlg=To permanently remove the game: %s, click on Go. wifiplayers=Wifi Players