mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 02:41:55 +01:00
- upped to beta 8
- mainly just some various code cleanups - added 'Always show main icons' option page 14 of main settings. this prevents the main screen icons from hiding.
This commit is contained in:
parent
c2007e3421
commit
d93017e4ad
Binary file not shown.
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.1 MiB After Width: | Height: | Size: 4.1 MiB |
@ -1,6 +1,6 @@
|
||||
|
||||
#define APP_NAME "WiiFlow WFL"
|
||||
#define APP_VERSION "5.4.7 beta 7"
|
||||
#define APP_VERSION "5.4.7 beta 8"
|
||||
|
||||
#define APP_DATA_DIR "wiiflow"
|
||||
#define APPS_DIR "apps/wiiflow"
|
||||
|
@ -61,7 +61,7 @@ void DeviceHandler::MountAll()
|
||||
void DeviceHandler::UnMountAll()
|
||||
{
|
||||
/* Kill possible USB thread */
|
||||
KillUSBKeepAliveThread();
|
||||
//KillUSBKeepAliveThread();
|
||||
|
||||
for(u32 i = SD; i < MAXDEVICES; i++)
|
||||
UnMount(i);
|
||||
|
@ -160,18 +160,9 @@ bool AHBPROT_Patched(void)
|
||||
}
|
||||
|
||||
/* WiiU Check by crediar, thanks */
|
||||
bool WiiUChecked = false;
|
||||
bool WiiUMode = false;
|
||||
bool IsOnWiiU(void)
|
||||
{
|
||||
if(WiiUChecked)
|
||||
return WiiUMode;
|
||||
|
||||
if((*HW_PROCESSOR >> 16) == 0xCAFE)
|
||||
WiiUMode = true;
|
||||
|
||||
WiiUChecked = true;
|
||||
return WiiUMode;
|
||||
return ((*HW_PROCESSOR >> 16 ) == 0xCAFE);
|
||||
}
|
||||
|
||||
void Sys_SetNeekPath(const char *Path)
|
||||
|
@ -50,10 +50,10 @@ 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);
|
||||
if(curPage != 14)
|
||||
{
|
||||
m_btnMgr.show(m_config7Lbl2);
|
||||
m_btnMgr.show(m_config7Btn2);
|
||||
m_btnMgr.show(m_config7Lbl3);
|
||||
m_btnMgr.show(m_config7Btn3);
|
||||
m_btnMgr.show(m_config7Lbl4);
|
||||
@ -149,6 +149,8 @@ void CMenu::_showConfig7(int curPage)
|
||||
{
|
||||
m_btnMgr.setText(m_config7Lbl1, _t("cfg729", L"Use system proxy settings"));
|
||||
m_btnMgr.setText(m_config7Btn1, m_cfg.getBool("PROXY", "proxy_use_system") ? _t("on", L"On") : _t("off", L"Off"));
|
||||
m_btnMgr.setText(m_config7Lbl2, _t("cfg730", L"Always show main icons"));
|
||||
m_btnMgr.setText(m_config7Btn2, !m_cfg.getBool("GENERAL", "auto_hide_icons", true) ? _t("yes", L"Yes") : _t("no", L"No"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -365,6 +367,13 @@ int CMenu::_config7(int curPage)
|
||||
mainMenu.proxyUseSystem = val;
|
||||
m_btnMgr.setText(m_config7Btn1, val ? _t("on", L"On") : _t("off", L"Off"));
|
||||
}
|
||||
else if(m_btnMgr.selected(m_config7Btn2))
|
||||
{
|
||||
bool val = !m_cfg.getBool("GENERAL", "auto_hide_icons");
|
||||
m_cfg.setBool("GENERAL", "auto_hide_icons", val);
|
||||
m_btnMgr.setText(m_config7Btn2, !val ? _t("yes", L"Yes") : _t("no", L"No"));
|
||||
Auto_hide_icons = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -138,7 +138,7 @@ void CMenu::_showCF(bool refreshList)
|
||||
|
||||
/* if game list is empty display message letting user know */
|
||||
wstringEx Msg;
|
||||
wstringEx Pth;
|
||||
string Pth;
|
||||
if(m_gameList.empty())
|
||||
{
|
||||
cacheCovers = false;
|
||||
@ -152,20 +152,20 @@ void CMenu::_showCF(bool refreshList)
|
||||
switch(m_current_view)
|
||||
{
|
||||
case COVERFLOW_WII:
|
||||
Msg = _t("main2", L"No games found in ");
|
||||
Pth = wstringEx(fmt(wii_games_dir, DeviceName[currentPartition]));
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(wii_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_GAMECUBE:
|
||||
Msg = _t("main2", L"No games found in ");
|
||||
Pth = wstringEx(fmt(gc_games_dir, DeviceName[currentPartition]));
|
||||
Msg = _t("main2", L"No games found in");
|
||||
Pth = sfmt(gc_games_dir, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_CHANNEL:
|
||||
Msg = _t("main3", L"No titles found in ");
|
||||
Pth = wstringEx(fmt("%s:/%s/%s", DeviceName[currentPartition], emu_nands_dir, m_cfg.getString(CHANNEL_DOMAIN, "current_emunand").c_str()));
|
||||
Msg = _t("main3", L"No titles found in");
|
||||
Pth = sfmt("%s:/%s/%s", DeviceName[currentPartition], emu_nands_dir, m_cfg.getString(CHANNEL_DOMAIN, "current_emunand").c_str());
|
||||
break;
|
||||
case COVERFLOW_HOMEBREW:
|
||||
Msg = _t("main4", L"No apps found in ");
|
||||
Pth = wstringEx(fmt(HOMEBREW_DIR, DeviceName[currentPartition]));
|
||||
Msg = _t("main4", L"No apps found in");
|
||||
Pth = sfmt(HOMEBREW_DIR, DeviceName[currentPartition]);
|
||||
break;
|
||||
case COVERFLOW_PLUGIN:
|
||||
Pth = "";
|
||||
@ -175,18 +175,18 @@ void CMenu::_showCF(bool refreshList)
|
||||
Msg = _t("main5", L"No roms/items found.");
|
||||
else
|
||||
{
|
||||
Msg = _t("main2", L"No games found in ");
|
||||
Msg = _t("main2", L"No games found in");
|
||||
u8 i = 0;
|
||||
while(m_plugin.PluginExist(i) && !m_plugin.GetEnabledStatus(i)){ ++i; }
|
||||
int romsPartition = m_plugin.GetRomPartition(i);
|
||||
if(romsPartition < 0)
|
||||
romsPartition = m_cfg.getInt(PLUGIN_DOMAIN, "partition", 0);
|
||||
Pth = wstringEx(fmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i)));
|
||||
Pth = sfmt("%s:/%s", DeviceName[romsPartition], m_plugin.GetRomDir(i));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
Msg.append(Pth);
|
||||
Msg.append(wstringEx(' ' + Pth));
|
||||
m_btnMgr.setText(m_mainLblMessage, Msg);
|
||||
m_btnMgr.show(m_mainLblMessage);
|
||||
return;
|
||||
|
@ -274,7 +274,7 @@ void CMenu::_checkboxesMenu(u8 md)
|
||||
{
|
||||
found = true;// and don't add it
|
||||
}
|
||||
else
|
||||
else if(m_plugin.GetPluginPosition(strtoul(magicNums[i].c_str(), NULL, 16)) < 255)// make sure plugin exist
|
||||
{
|
||||
if(pluginsCount == 0)
|
||||
newMagics = magicNums[j];
|
||||
|
@ -69,7 +69,7 @@ void Plugin::init(const string& m_pluginsDir)
|
||||
if(iniFile->find("scummvm.ini") != string::npos)
|
||||
continue;
|
||||
m_plugin_cfg.load(iniFile->c_str());
|
||||
if(m_plugin_cfg.loaded())
|
||||
if(m_plugin_cfg.loaded() && Plugins.size() < 256)// max plugins count = 255
|
||||
{
|
||||
m_plugin.AddPlugin(m_plugin_cfg, *iniFile);
|
||||
}
|
||||
@ -119,7 +119,7 @@ u8 Plugin::GetPluginPosition(u32 magic)
|
||||
for(u8 pos = 0; pos < Plugins.size(); pos++)
|
||||
{
|
||||
if(magic == Plugins[pos].magic)
|
||||
return (s16)pos;
|
||||
return pos;
|
||||
}
|
||||
return 255;
|
||||
}
|
||||
|
@ -70,6 +70,8 @@ cfg725=Shutdown to idle standby
|
||||
cfg726=Covers Box Mode
|
||||
cfg727=Use Plugin Database Titles
|
||||
cfg728=Upsample music to 48khz
|
||||
cfg729=Use system proxy settings
|
||||
cfg730=Always show main icons
|
||||
cfga2=Install game
|
||||
cfga3=Install
|
||||
cfga6=Language
|
||||
|
Loading…
Reference in New Issue
Block a user