mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 05:34:15 +01:00
- 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:
parent
105a1bc623
commit
8a5a0fd438
Binary file not shown.
BIN
out/boot.dol
BIN
out/boot.dol
Binary file not shown.
Before Width: | Height: | Size: 4.4 MiB After Width: | Height: | Size: 4.4 MiB |
@ -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();
|
||||
}
|
||||
|
@ -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"
|
||||
|
@ -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);
|
||||
|
@ -1167,7 +1167,7 @@ private:
|
||||
bool _Home();
|
||||
bool _ExitTo();
|
||||
void _Shutdown();
|
||||
bool _Boot();
|
||||
void _Boot();
|
||||
void _Paths();
|
||||
void _sourceFlow();
|
||||
int _getSrcFlow();
|
||||
|
@ -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)
|
||||
|
@ -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))
|
||||
|
@ -29,7 +29,7 @@ void DS3_Cleanup()
|
||||
{
|
||||
psPressed = false;
|
||||
ss_close(&Controller1);
|
||||
USB_Deinitialize();
|
||||
//USB_Deinitialize();
|
||||
}
|
||||
|
||||
unsigned int DS3_ButtonsDown()
|
||||
|
Loading…
Reference in New Issue
Block a user