mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-25 03:11:58 +01:00
-lalala (fixed homebrew dol loading)
This commit is contained in:
parent
321a398151
commit
c52009ea57
@ -488,7 +488,7 @@ void CMenu::init(void)
|
|||||||
|
|
||||||
bool cleaned_up = false;
|
bool cleaned_up = false;
|
||||||
|
|
||||||
void CMenu::cleanup()
|
void CMenu::cleanup(bool hb)
|
||||||
{
|
{
|
||||||
if(cleaned_up)
|
if(cleaned_up)
|
||||||
return;
|
return;
|
||||||
@ -509,6 +509,7 @@ void CMenu::cleanup()
|
|||||||
|
|
||||||
if(!m_reload)
|
if(!m_reload)
|
||||||
{
|
{
|
||||||
|
if(!hb)
|
||||||
DeviceHandler::DestroyInstance();
|
DeviceHandler::DestroyInstance();
|
||||||
m_vid.CheckWaitThread(true);
|
m_vid.CheckWaitThread(true);
|
||||||
m_vid.cleanup();
|
m_vid.cleanup();
|
||||||
|
@ -47,7 +47,7 @@ public:
|
|||||||
void terror(const char *key, const wchar_t *msg) { error(_fmt(key, msg)); }
|
void terror(const char *key, const wchar_t *msg) { error(_fmt(key, msg)); }
|
||||||
void exitHandler(int ExitTo);
|
void exitHandler(int ExitTo);
|
||||||
int main(void);
|
int main(void);
|
||||||
void cleanup();
|
void cleanup(bool hb = false);
|
||||||
u8 m_current_view;
|
u8 m_current_view;
|
||||||
private:
|
private:
|
||||||
struct SZone
|
struct SZone
|
||||||
|
@ -899,9 +899,10 @@ void CMenu::_launchHomebrew(const char *filepath, vector<string> arguments)
|
|||||||
m_cfg.save(true);
|
m_cfg.save(true);
|
||||||
|
|
||||||
Playlog_Delete();
|
Playlog_Delete();
|
||||||
cleanup(); // wifi and sd gecko doesnt work anymore after cleanup
|
cleanup(true); // wifi and sd gecko doesnt work anymore after cleanup
|
||||||
|
|
||||||
LoadHomebrew(filepath);
|
LoadHomebrew(filepath);
|
||||||
|
DeviceHandler::DestroyInstance(); //homebrew loaded, we can unmount devices now
|
||||||
AddBootArgument(filepath);
|
AddBootArgument(filepath);
|
||||||
for(u32 i = 0; i < arguments.size(); ++i)
|
for(u32 i = 0; i < arguments.size(); ++i)
|
||||||
AddBootArgument(arguments[i].c_str());
|
AddBootArgument(arguments[i].c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user