- reinstated Fix94's keep USB alive thread for IOS58 mode.

- fixed reloading wiiflow after any changes on Startup Settings menu.
- changed the order of functions for ShutdownBeforeExit() to possible fix any shutdown and gameboot issues.
- v5.5.2 beta 1
This commit is contained in:
Fledge68 2022-01-17 14:50:40 -06:00
parent 105a1bc623
commit 8a5a0fd438
9 changed files with 15 additions and 18 deletions

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 MiB

After

Width:  |  Height:  |  Size: 4.4 MiB

View File

@ -148,9 +148,6 @@ void ExternalBooter_ChannelSetup(u64 title, bool dol)
void ShutdownBeforeExit(void)
{
DeviceHandle.UnMountAll();
NandHandle.DeInit_ISFS();
WDVD_Close();
Close_Inputs();
/* Deinit network */
if(networkInit == true)
@ -165,4 +162,7 @@ void ShutdownBeforeExit(void)
}
/* Avoid issues on vWii by always calling this */
net_wc24cleanup();
NandHandle.DeInit_ISFS();
DeviceHandle.UnMountAll();
WDVD_Close();
}

View File

@ -1,6 +1,6 @@
#define APP_NAME "WiiFlow WFL"
#define APP_VERSION "5.5.1"
#define APP_VERSION "5.5.2 beta 1"
#define APP_DATA_DIR "wiiflow"
#define APPS_DIR "apps/wiiflow"

View File

@ -113,7 +113,7 @@ bool DeviceHandler::MountAllUSB()
return false;
/* Kill possible USB thread */
//KillUSBKeepAliveThread();
KillUSBKeepAliveThread();
/* usb spinup - Wait for our slowass HDD */
if(WaitForDevice(GetUSBInterface()) == false)
@ -134,8 +134,8 @@ bool DeviceHandler::MountAllUSB()
if(!result)
result = usb.Mount(0, DeviceName[USB1], true); /* Force FAT */
//if(result && usb_libogc_mode)
// CreateUSBKeepAliveThread();
if(result && usb_libogc_mode)
CreateUSBKeepAliveThread();
return result;
}
@ -161,7 +161,7 @@ void DeviceHandler::UnMount(int dev)
void DeviceHandler::UnMountAll()
{
/* Kill possible USB thread */
//KillUSBKeepAliveThread();
KillUSBKeepAliveThread();
for(u32 i = SD; i < MAXDEVICES; i++)
UnMount(i);

View File

@ -1167,7 +1167,7 @@ private:
bool _Home();
bool _ExitTo();
void _Shutdown();
bool _Boot();
void _Boot();
void _Paths();
void _sourceFlow();
int _getSrcFlow();

View File

@ -76,12 +76,12 @@ void CMenu::_showBoot()
m_btnMgr.show(m_bootBtnSDOnly);
}
bool CMenu::_Boot(void)
void CMenu::_Boot(void)
{
if(isWiiVC)
{
error(_t("errboot7", L"Access denied in Wii VC mode."));
return false;
return;
}
set_port = currentPort;
bool prev_load = cur_load;
@ -152,11 +152,9 @@ bool CMenu::_Boot(void)
if(prev_load != cur_load || prev_ios != cur_ios || set_port != currentPort || prev_sd != cur_sd)
{
error(_t("errboot8", L"Press 'A' to reload WiiFlow"));
m_exit = true;
m_reload = true;
return 1;
vector<string> arguments = _getMetaXML(fmt("%s/boot.dol", m_appDir.c_str()));
_launchHomebrew(fmt("%s/boot.dol", m_appDir.c_str()), arguments);
}
return 0;
}
void CMenu::_initBoot(void)

View File

@ -134,8 +134,7 @@ int CMenu::_configAdv(void)
if(m_btnMgr.selected(m_configAdvBtnBootChange))
{
_hideConfigAdv();
if(_Boot())
break; /* Settings changed */
_Boot();
_showConfigAdv();
}
else if(m_btnMgr.selected(m_configAdvBtnCurThemeP) || m_btnMgr.selected(m_configAdvBtnCurThemeM))

View File

@ -29,7 +29,7 @@ void DS3_Cleanup()
{
psPressed = false;
ss_close(&Controller1);
USB_Deinitialize();
//USB_Deinitialize();
}
unsigned int DS3_ButtonsDown()