- fix for issue #85

This commit is contained in:
Fledge68 2019-04-08 12:54:26 -05:00
parent a4968a91ac
commit 27102f4f6f
3 changed files with 6 additions and 4 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 MiB

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@ -295,7 +295,7 @@ void CMenu::_showCF(bool refreshList)
int CMenu::main(void)
{
wstringEx curLetter;
const char *prevTheme = m_cfg.getString("GENERAL", "theme", "default").c_str();
string prevTheme = m_cfg.getString("GENERAL", "theme", "default");
bool show_channel = !m_cfg.getBool(CHANNEL_DOMAIN, "disable", false);
bool show_plugin = !m_cfg.getBool(PLUGIN_DOMAIN, "disable", false);
bool show_gamecube = !m_cfg.getBool(GC_DOMAIN, "disable", false);
@ -448,7 +448,7 @@ int CMenu::main(void)
/* main menu global settings */
_hideMain();
_config(1);
if(strcmp(prevTheme, m_cfg.getString("GENERAL", "theme").c_str()) != 0)
if(prevTheme != m_cfg.getString("GENERAL", "theme"))
{
/* new theme - exit wiiflow and reload */
fsop_deleteFolder(fmt("%s/sourceflow", m_cacheDir.c_str()));

View File

@ -717,8 +717,10 @@ void CMenu::_setSrcOptions(void)
}
if(m_multisource) return;
/* autoboot */
const char *autoboot = m_source.getString(btn_selected, "autoboot", "").c_str();
if(autoboot != NULL && autoboot[0] != '\0')
char autoboot[64];
autoboot[63] = '\0';
strncpy(autoboot, m_source.getString(btn_selected, "autoboot", "").c_str(), sizeof(autoboot) - 1);
if(autoboot[0] != '\0')
{
m_source_autoboot = true;
memset(&m_autoboot_hdr, 0, sizeof(dir_discHdr));