mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-22 11:19:17 +01:00
*Added question before installing: "Do you really wanna install <gamename> <size>?"
This commit is contained in:
parent
218679aa89
commit
1c632d82a7
@ -2062,7 +2062,15 @@ static int MenuInstall()
|
||||
u32 estimation = wbfs_estimate_disc(hdd, __WBFS_ReadDVD, NULL, ONLY_GAME_PARTITION);
|
||||
f32 gamesize = ((f32) estimation)/1073741824;
|
||||
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);
|
||||
|
||||
if (gamesize > freespace) {
|
||||
char errortxt[50];
|
||||
sprintf(errortxt, "Game Size: %.2fGB, Free Space: %.2fGB", gamesize, freespace);
|
||||
@ -2103,6 +2111,11 @@ static int MenuInstall()
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
menu = MENU_DISCLIST;
|
||||
wiilight(0);
|
||||
break;
|
||||
}
|
||||
|
||||
if (shutdown == 1)
|
||||
Sys_Shutdown();
|
||||
|
Loading…
Reference in New Issue
Block a user