mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-19 17:59:16 +01:00
*Small changes
This commit is contained in:
parent
6d082b7c66
commit
33eaefe81e
@ -118,6 +118,7 @@ UpdateGUI (void *arg)
|
||||
}
|
||||
else
|
||||
{
|
||||
if(!ExitRequested) {
|
||||
mainWindow->Draw();
|
||||
if (Settings.tooltips == TooltipsOn && THEME.showToolTip != 0 && mainWindow->GetState() != STATE_DISABLED)
|
||||
mainWindow->DrawTooltip();
|
||||
@ -140,8 +141,7 @@ UpdateGUI (void *arg)
|
||||
for(int i=0; i < 4; i++)
|
||||
mainWindow->Update(&userInput[i]);
|
||||
|
||||
if(ExitRequested)
|
||||
{
|
||||
} else {
|
||||
for(int a = 5; a < 255; a += 10)
|
||||
{
|
||||
mainWindow->Draw();
|
||||
@ -1816,26 +1816,20 @@ int MainMenu(int menu)
|
||||
break;
|
||||
}
|
||||
}
|
||||
ExitGUIThreads();
|
||||
|
||||
ExitGUIThreads();
|
||||
bgMusic->Stop();
|
||||
delete bgMusic;
|
||||
delete background;
|
||||
delete bgImg;
|
||||
delete mainWindow;
|
||||
mainWindow = NULL;
|
||||
delete pointer[0];
|
||||
delete pointer[1];
|
||||
delete pointer[2];
|
||||
delete pointer[3];
|
||||
for(int i = 0; i < 4; i++)
|
||||
delete pointer[i];
|
||||
delete GameRegionTxt;
|
||||
delete GameIDTxt;
|
||||
delete cover;
|
||||
delete coverImg;
|
||||
|
||||
StopGX();
|
||||
ShutdownAudio();
|
||||
|
||||
int ret = 0;
|
||||
struct discHdr *header = &gameList[gameSelected];
|
||||
|
||||
@ -1879,10 +1873,7 @@ int MainMenu(int menu)
|
||||
break;
|
||||
}
|
||||
|
||||
if(iosChoice == i223 || networkisinitialized == 1
|
||||
|| (iosChoice == i249 && Settings.cios == 1)
|
||||
|| (iosChoice == i222 && Settings.cios == 0)) {
|
||||
if(networkisinitialized == 1) ResumeGui();
|
||||
if(IOS_GetVersion() != ios2 || networkisinitialized == 1) {
|
||||
ret = Sys_IosReload(ios2);
|
||||
if(ret < 0) {
|
||||
Sys_IosReload(249);
|
||||
@ -1893,10 +1884,6 @@ int MainMenu(int menu)
|
||||
ret = Disc_Open();
|
||||
if(ret < 0) Sys_BackToLoader();
|
||||
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
USBStorage_Deinit();
|
||||
|
||||
u8 errorfixer002 = 0;
|
||||
switch(fix002)
|
||||
{
|
||||
@ -2026,7 +2013,13 @@ int MainMenu(int menu)
|
||||
break;
|
||||
}
|
||||
|
||||
ShutdownAudio();
|
||||
StopGX();
|
||||
SDCard_deInit();
|
||||
USBDevice_deInit();
|
||||
USBStorage_Deinit();
|
||||
mload_close();
|
||||
|
||||
ret = Disc_WiiBoot(videoselected, cheat, vipatch, Settings.patchcountrystrings, errorfixer002);
|
||||
if (ret < 0) {
|
||||
Sys_LoadMenu();
|
||||
|
@ -1,7 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <ogcsys.h>
|
||||
#include <network.h>
|
||||
|
||||
#include "http.h"
|
||||
|
||||
|
@ -32,9 +32,6 @@ void __Disc_SetLowMem(void)
|
||||
*(vu32 *)0x800000F8 = 0x0E7BE2C0;
|
||||
*(vu32 *)0x800000FC = 0x2B73A840;
|
||||
|
||||
/** online check **/
|
||||
memcpy((u32*) 0x80003180, (u32*) 0x80000000, 4);
|
||||
|
||||
/* Copy disc ID */
|
||||
memcpy((void *)0x80003180, (void *)0x80000000, 4);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user