- 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) void ShutdownBeforeExit(void)
{ {
DeviceHandle.UnMountAll();
NandHandle.DeInit_ISFS();
WDVD_Close();
Close_Inputs(); Close_Inputs();
/* Deinit network */ /* Deinit network */
if(networkInit == true) if(networkInit == true)
@ -165,4 +162,7 @@ void ShutdownBeforeExit(void)
} }
/* Avoid issues on vWii by always calling this */ /* Avoid issues on vWii by always calling this */
net_wc24cleanup(); net_wc24cleanup();
NandHandle.DeInit_ISFS();
DeviceHandle.UnMountAll();
WDVD_Close();
} }

View File

@ -1,6 +1,6 @@
#define APP_NAME "WiiFlow WFL" #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 APP_DATA_DIR "wiiflow"
#define APPS_DIR "apps/wiiflow" #define APPS_DIR "apps/wiiflow"

View File

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

View File

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

View File

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

View File

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

View File

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