-lalala (fixed homebrew dol loading)

This commit is contained in:
fix94.1 2012-07-19 22:31:25 +00:00
parent 321a398151
commit c52009ea57
3 changed files with 6 additions and 4 deletions

View File

@ -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();

View File

@ -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

View File

@ -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());