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