*Added question before installing: "Do you really wanna install <gamename> <size>?"

This commit is contained in:
dimok321 2009-05-04 18:21:55 +00:00
parent 218679aa89
commit 1c632d82a7

View File

@ -2062,7 +2062,15 @@ static int MenuInstall()
u32 estimation = wbfs_estimate_disc(hdd, __WBFS_ReadDVD, NULL, ONLY_GAME_PARTITION); u32 estimation = wbfs_estimate_disc(hdd, __WBFS_ReadDVD, NULL, ONLY_GAME_PARTITION);
f32 gamesize = ((f32) estimation)/1073741824; f32 gamesize = ((f32) estimation)/1073741824;
char gametxt[50]; char gametxt[50];
sprintf(gametxt, "%s : %.2fGB", name, gamesize);
choice = WindowPrompt("Continue install game?:",gametxt,"OK","Cancel");
if(choice == 1) {
sprintf(gametxt, "Installing game %.2fGB:", gamesize); sprintf(gametxt, "Installing game %.2fGB:", gamesize);
if (gamesize > freespace) { if (gamesize > freespace) {
char errortxt[50]; char errortxt[50];
sprintf(errortxt, "Game Size: %.2fGB, Free Space: %.2fGB", gamesize, freespace); sprintf(errortxt, "Game Size: %.2fGB, Free Space: %.2fGB", gamesize, freespace);
@ -2103,6 +2111,11 @@ static int MenuInstall()
break; break;
} }
} }
} else {
menu = MENU_DISCLIST;
wiilight(0);
break;
}
if (shutdown == 1) if (shutdown == 1)
Sys_Shutdown(); Sys_Shutdown();