From 1c632d82a7e0b154655683ec6e0e8781e3322632 Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Mon, 4 May 2009 18:21:55 +0000 Subject: [PATCH] *Added question before installing: "Do you really wanna install ?" --- source/menu.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/source/menu.cpp b/source/menu.cpp index 44d8e4db..5f6cc7ae 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -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();