From eaa74bb49e35de0d9db80fd891116cfc6fcb1800 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Tue, 15 May 2012 22:07:45 +0000 Subject: [PATCH] -removed MEM2 cleanup, and set up MEM1 cleanup higher -fixed a bug in IOS reload which might result in blackscreen --- source/menu/menu_game.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/source/menu/menu_game.cpp b/source/menu/menu_game.cpp index 5f8244cd..861de5a3 100644 --- a/source/menu/menu_game.cpp +++ b/source/menu/menu_game.cpp @@ -846,7 +846,6 @@ int CMenu::_loadIOS(u8 gameIOS, int userIOS, string id) if (gameIOS != mainIOS) { gprintf("Reloading IOS into %d\n", gameIOS); - cleanup(true); if(!loadIOS(gameIOS, true)) { _reload_wifi_gecko(); @@ -1290,7 +1289,7 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd) SDHC_Init(); // clear mem1 main - u32 size = (u32)0x80a00000 - (u32)0x80004000; + u32 size = (u32)0x80A80000 - (u32)0x80004000; memset((void*)0x80004000, 0, size); DCFlushRange((void*)0x80004000, size); @@ -1302,10 +1301,8 @@ void CMenu::_launchGame(dir_discHdr *hdr, bool dvd) u32 AppEntryPoint = RunApploader(offset, videoMode, vipatch, countryPatch, patchVidMode, disableIOSreload, aspectRatio); DeviceHandler::DestroyInstance(); USBStorage_Deinit(); - - MEM2_clear(); - gprintf("\n\nEntry Point is: 0x%08x\n", AppEntryPoint); + usleep(100 * 1000); if (Disc_WiiBoot(AppEntryPoint) < 0) Sys_LoadMenu(); }