-fixed wrong label in the startup settings

-fixed emuflow for plugins get displayed wrong
This commit is contained in:
fix94.1 2013-09-06 00:25:36 +00:00
parent 4d03e0e2dc
commit e1738af041
2 changed files with 5 additions and 5 deletions

View File

@ -64,7 +64,7 @@ static void showBoot(void)
m_btnMgr.show(m_bootBtnPageP); m_btnMgr.show(m_bootBtnPageP);
for(u8 i = 0; i < ARRAY_SIZE(m_bootLblUser); ++i) for(u8 i = 0; i < ARRAY_SIZE(m_bootLblUser); ++i)
if(m_bootLblUser[i] != -1) if(m_bootLblUser[i] != -1)
m_btnMgr.show(m_bootLblUser[i]); m_btnMgr.show(m_bootLblUser[i]);
} }
static void hideBoot(bool instant, bool common) static void hideBoot(bool instant, bool common)
@ -280,7 +280,7 @@ void CMenu::_textBoot(void)
m_btnMgr.setText(m_bootLblCategoryOnBoot, _t("cfgd7", L"Show categories on boot")); m_btnMgr.setText(m_bootLblCategoryOnBoot, _t("cfgd7", L"Show categories on boot"));
m_btnMgr.setText(m_bootLblSourceOnBoot, _t("cfgbt5", L"Show source menu on boot")); m_btnMgr.setText(m_bootLblSourceOnBoot, _t("cfgbt5", L"Show source menu on boot"));
m_btnMgr.setText(m_bootLblMultisource, _t("cfgbt6", L"Enable Multisource Features")); m_btnMgr.setText(m_bootLblMultisource, _t("cfgbt6", L"Enable Multisource Features"));
m_btnMgr.setText(m_bootLblFtpOnBoot, _t("cfgbt6", L"Start FTP Server on boot")); m_btnMgr.setText(m_bootLblFtpOnBoot, _t("cfgbt7", L"Start FTP Server on boot"));
m_btnMgr.setText(m_bootBtnBack, _t("cfg10", L"Back")); m_btnMgr.setText(m_bootBtnBack, _t("cfg10", L"Back"));
} }

View File

@ -382,10 +382,10 @@ bool CMenu::_Source()
{ {
if(m_btnMgr.selected(m_sourceBtnSource[i])) if(m_btnMgr.selected(m_sourceBtnSource[i]))
{ {
const char *btn_selected = fmt("BUTTON_%i", i + j); char btn_selected[256];
gprintf("%s\n", btn_selected); memset(btn_selected, 0, 256);
strncpy(btn_selected, fmt("BUTTON_%i", i + j), 255);
string source = m_source.getString(btn_selected, "source", ""); string source = m_source.getString(btn_selected, "source", "");
gprintf("%s\n", source.c_str());
if(BTN_A_PRESSED) if(BTN_A_PRESSED)
{ {
_clearSources(); _clearSources();