mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-01 09:05:06 +01:00
- fix for issue #85
This commit is contained in:
parent
a4968a91ac
commit
27102f4f6f
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 3.4 MiB After Width: | Height: | Size: 3.4 MiB |
@ -295,7 +295,7 @@ void CMenu::_showCF(bool refreshList)
|
|||||||
int CMenu::main(void)
|
int CMenu::main(void)
|
||||||
{
|
{
|
||||||
wstringEx curLetter;
|
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_channel = !m_cfg.getBool(CHANNEL_DOMAIN, "disable", false);
|
||||||
bool show_plugin = !m_cfg.getBool(PLUGIN_DOMAIN, "disable", false);
|
bool show_plugin = !m_cfg.getBool(PLUGIN_DOMAIN, "disable", false);
|
||||||
bool show_gamecube = !m_cfg.getBool(GC_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 */
|
/* main menu global settings */
|
||||||
_hideMain();
|
_hideMain();
|
||||||
_config(1);
|
_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 */
|
/* new theme - exit wiiflow and reload */
|
||||||
fsop_deleteFolder(fmt("%s/sourceflow", m_cacheDir.c_str()));
|
fsop_deleteFolder(fmt("%s/sourceflow", m_cacheDir.c_str()));
|
||||||
|
@ -717,8 +717,10 @@ void CMenu::_setSrcOptions(void)
|
|||||||
}
|
}
|
||||||
if(m_multisource) return;
|
if(m_multisource) return;
|
||||||
/* autoboot */
|
/* autoboot */
|
||||||
const char *autoboot = m_source.getString(btn_selected, "autoboot", "").c_str();
|
char autoboot[64];
|
||||||
if(autoboot != NULL && autoboot[0] != '\0')
|
autoboot[63] = '\0';
|
||||||
|
strncpy(autoboot, m_source.getString(btn_selected, "autoboot", "").c_str(), sizeof(autoboot) - 1);
|
||||||
|
if(autoboot[0] != '\0')
|
||||||
{
|
{
|
||||||
m_source_autoboot = true;
|
m_source_autoboot = true;
|
||||||
memset(&m_autoboot_hdr, 0, sizeof(dir_discHdr));
|
memset(&m_autoboot_hdr, 0, sizeof(dir_discHdr));
|
||||||
|
Loading…
Reference in New Issue
Block a user