This commit is contained in:
hungyip 2009-06-04 03:47:01 +00:00
parent 3887824fde
commit 8d1c7ba450
2 changed files with 108 additions and 107 deletions

View File

@ -270,8 +270,8 @@ void CFG_Default(int widescreen) // -1 = non forced Mode
THEME.home_y = 367; THEME.home_y = 367;
THEME.setting_x = 60;//-210 THEME.setting_x = 60;//-210
THEME.setting_y = 367; THEME.setting_y = 367;
THEME.showHDD = -1; //default, non-force mode THEME.showHDD = 1; //default
THEME.showGameCnt = -1; //default, non-force mode THEME.showGameCnt = 1; //default
THEME.showToolTip = 1; //1 means use settings, 0 means force turn off THEME.showToolTip = 1; //1 means use settings, 0 means force turn off
THEME.install_x = 16;//-280 THEME.install_x = 16;//-280
THEME.install_y = 355; THEME.install_y = 355;

View File

@ -2975,7 +2975,6 @@ static int MenuInstall()
static int MenuDiscList() static int MenuDiscList()
{ {
datagB = 0; datagB = 0;
int menu = MENU_NONE, dataef = 0; int menu = MENU_NONE, dataef = 0;
char imgPath[100]; char imgPath[100];
@ -3301,11 +3300,11 @@ static int MenuDiscList()
HaltGui(); HaltGui();
GuiWindow w(screenwidth, screenheight); GuiWindow w(screenwidth, screenheight);
if(THEME.showHDD == -1 || THEME.showHDD == 1) //force show hdd info if(THEME.showHDD == 1)
{ {
w.Append(&usedSpaceTxt); w.Append(&usedSpaceTxt);
} }
if(THEME.showGameCnt == -1 || THEME.showGameCnt == 1) //force show game cnt info if(THEME.showGameCnt == 1)
{ {
w.Append(&gamecntTxt); w.Append(&gamecntTxt);
} }
@ -5730,23 +5729,23 @@ static int MenuCheck()
int menu = MENU_NONE; int menu = MENU_NONE;
int i = 0; int i = 0;
int choice; int choice;
s32 ret, ret2; s32 ret;
OptionList options; OptionList options;
options.length = i; options.length = i;
partitionEntry partitions[MAX_PARTITIONS]; partitionEntry partitions[MAX_PARTITIONS];
VIDEO_WaitVSync (); VIDEO_WaitVSync ();
ret2 = WBFS_Init(WBFS_DEVICE_USB); ret = WBFS_Init(WBFS_DEVICE_USB);
if (ret2 < 0) if (ret < 0)
{ {
ret2 = WindowPrompt(LANGUAGE.NoUSBDevicefound, ret = WindowPrompt(LANGUAGE.NoUSBDevicefound,
LANGUAGE.Doyouwanttoretryfor30secs, LANGUAGE.Doyouwanttoretryfor30secs,
"cIOS249", "cIOS222", "cIOS249", "cIOS222", LANGUAGE.BacktoWiiMenu, 0);
LANGUAGE.BacktoWiiMenu, 0); if(ret == 1) {
if(ret2 == 1) {
Settings.cios = ios249; Settings.cios = ios249;
} else if(ret2 == 2) { }
else if(ret == 2) {
if(Settings.cios != ios222) if(Settings.cios != ios222)
{ {
//shutdown WiiMote before IOS Reload //shutdown WiiMote before IOS Reload
@ -5773,7 +5772,8 @@ static int MenuCheck()
else else
Settings.cios = ios222; Settings.cios = ios222;
} }
} else { }
else {
Sys_LoadMenu(); Sys_LoadMenu();
} }
@ -5786,7 +5786,7 @@ static int MenuCheck()
SDCard_deInit(); SDCard_deInit();
USBDevice_deInit(); USBDevice_deInit();
ret2 = DiscWait(LANGUAGE.NoUSBDevice, LANGUAGE.WaitingforUSBDevice, 0, 0, 1); ret = DiscWait(LANGUAGE.NoUSBDevice, LANGUAGE.WaitingforUSBDevice, 0, 0, 1);
//reinitialize WiiMote for Prompt //reinitialize WiiMote for Prompt
PAD_Init(); PAD_Init();
Wpad_Init(); Wpad_Init();
@ -5796,19 +5796,20 @@ static int MenuCheck()
SDCard_Init(); SDCard_Init();
USBDevice_Init(); USBDevice_Init();
} }
if (ret2 < 0) {
if (ret < 0) {
WindowPrompt (LANGUAGE.Error,LANGUAGE.USBDevicenotfound, LANGUAGE.ok, 0,0,0); WindowPrompt (LANGUAGE.Error,LANGUAGE.USBDevicenotfound, LANGUAGE.ok, 0,0,0);
Sys_LoadMenu(); Sys_LoadMenu();
} }
ret2 = Disc_Init(); ret = Disc_Init();
if (ret2 < 0) { if (ret < 0) {
WindowPrompt (LANGUAGE.Error,LANGUAGE.CouldnotinitializeDIPmodule,LANGUAGE.ok, 0,0,0); WindowPrompt (LANGUAGE.Error,LANGUAGE.CouldnotinitializeDIPmodule,LANGUAGE.ok, 0,0,0);
Sys_LoadMenu(); Sys_LoadMenu();
} }
ret2 = WBFS_Open(); ret = WBFS_Open();
if (ret2 < 0) { if (ret < 0) {
choice = WindowPrompt(LANGUAGE.NoWBFSpartitionfound, choice = WindowPrompt(LANGUAGE.NoWBFSpartitionfound,
LANGUAGE.Youneedtoformatapartition, LANGUAGE.Youneedtoformatapartition,
LANGUAGE.Format, LANGUAGE.Format,
@ -5816,14 +5817,14 @@ static int MenuCheck()
if(choice == 0) if(choice == 0)
{ {
Sys_LoadMenu(); Sys_LoadMenu();
} else { }
else {
/* Get partition entries */ /* Get partition entries */
u32 sector_size; u32 sector_size;
ret2 = Partition_GetEntries(partitions, &sector_size); ret = Partition_GetEntries(partitions, &sector_size);
if (ret2 < 0) { if (ret < 0) {
WindowPrompt (LANGUAGE.Nopartitionsfound,0, LANGUAGE.Restart, 0,0,0); WindowPrompt (LANGUAGE.Nopartitionsfound,0, LANGUAGE.Restart, 0,0,0);
Sys_LoadMenu(); Sys_LoadMenu();
} }
menu = MENU_FORMAT; menu = MENU_FORMAT;
} }
@ -5834,7 +5835,7 @@ static int MenuCheck()
if(reset == 1) if(reset == 1)
Sys_Reboot(); Sys_Reboot();
//Spieleliste laden //Spieleliste laden
__Menu_GetEntries(); //__Menu_GetEntries();
if(menu == MENU_NONE) if(menu == MENU_NONE)
menu = MENU_DISCLIST; menu = MENU_DISCLIST;