mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-12-24 19:01:56 +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;
|
||||
|
||||
void CMenu::cleanup()
|
||||
void CMenu::cleanup(bool hb)
|
||||
{
|
||||
if(cleaned_up)
|
||||
return;
|
||||
@ -509,6 +509,7 @@ void CMenu::cleanup()
|
||||
|
||||
if(!m_reload)
|
||||
{
|
||||
if(!hb)
|
||||
DeviceHandler::DestroyInstance();
|
||||
m_vid.CheckWaitThread(true);
|
||||
m_vid.cleanup();
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
void terror(const char *key, const wchar_t *msg) { error(_fmt(key, msg)); }
|
||||
void exitHandler(int ExitTo);
|
||||
int main(void);
|
||||
void cleanup();
|
||||
void cleanup(bool hb = false);
|
||||
u8 m_current_view;
|
||||
private:
|
||||
struct SZone
|
||||
|
@ -899,9 +899,10 @@ void CMenu::_launchHomebrew(const char *filepath, vector<string> arguments)
|
||||
m_cfg.save(true);
|
||||
|
||||
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);
|
||||
DeviceHandler::DestroyInstance(); //homebrew loaded, we can unmount devices now
|
||||
AddBootArgument(filepath);
|
||||
for(u32 i = 0; i < arguments.size(); ++i)
|
||||
AddBootArgument(arguments[i].c_str());
|
||||
|
Loading…
Reference in New Issue
Block a user