mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-30 15:14:18 +01:00
- fix for setting game IOS (broken in 5.4.5)
This commit is contained in:
parent
b0778217bb
commit
0263a20778
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_NAME "WiiFlow WFL"
|
||||||
#define APP_VERSION "5.4.5"
|
#define APP_VERSION "5.4.6"
|
||||||
|
|
||||||
#define APP_DATA_DIR "wiiflow"
|
#define APP_DATA_DIR "wiiflow"
|
||||||
#define APPS_DIR "apps/wiiflow"
|
#define APPS_DIR "apps/wiiflow"
|
||||||
|
@ -497,13 +497,17 @@ void CMenu::_showGameSettings()
|
|||||||
i = min(m_gcfg2.getUInt(id, "aspect_ratio", 0), ARRAY_SIZE(CMenu::_AspectRatio) - 1u);
|
i = min(m_gcfg2.getUInt(id, "aspect_ratio", 0), ARRAY_SIZE(CMenu::_AspectRatio) - 1u);
|
||||||
m_btnMgr.setText(m_gameSettingsLblAspectRatioVal, _t(CMenu::_AspectRatio[i].id, CMenu::_AspectRatio[i].text));
|
m_btnMgr.setText(m_gameSettingsLblAspectRatioVal, _t(CMenu::_AspectRatio[i].id, CMenu::_AspectRatio[i].text));
|
||||||
|
|
||||||
|
// this getInt() is different than the normal getInt()
|
||||||
|
// this getInt() will actually set the j variable to the value of the key. hence the & before j.
|
||||||
|
// this appears to be the only time this getInt() is called of all wiiflow code.
|
||||||
|
// why they didn't just set int j = m_gcfg2.getInt(id, "ios", 0); i do not know.
|
||||||
int j = 0;
|
int j = 0;
|
||||||
if(m_gcfg2.getInt(id, "ios", j) && _installed_cios.size() > 0)
|
if(m_gcfg2.getInt(id, "ios", &j) && _installed_cios.size() > 0)
|
||||||
{
|
{
|
||||||
CIOSItr itr = _installed_cios.find(j);
|
CIOSItr itr = _installed_cios.find(j);
|
||||||
j = (itr == _installed_cios.end()) ? 0 : itr->first;
|
j = (itr == _installed_cios.end()) ? 0 : itr->first;
|
||||||
}
|
}
|
||||||
//else j = 0;
|
else j = 0;
|
||||||
|
|
||||||
if(j > 0)
|
if(j > 0)
|
||||||
m_btnMgr.setText(m_gameSettingsLblIOS, wfmt(L"%i", j));
|
m_btnMgr.setText(m_gameSettingsLblIOS, wfmt(L"%i", j));
|
||||||
|
Loading…
Reference in New Issue
Block a user