From 046be61cc4d695f37ea962a0365c840ce1e8402c Mon Sep 17 00:00:00 2001 From: dimok321 <15055714+dimok789@users.noreply.github.com> Date: Tue, 5 May 2009 23:07:22 +0000 Subject: [PATCH] *Fixed some Bugs like Ocarina/some game not running anymore and so on --- source/menu.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/source/menu.cpp b/source/menu.cpp index 12918fbc..fdef618c 100644 --- a/source/menu.cpp +++ b/source/menu.cpp @@ -1613,7 +1613,7 @@ ProgressDownloadWindow(int choice2) prTxt.SetText(prozent); prTxt.SetFont(fontClock); progressbarImg.SetTile(100*i/cntMissFiles); - + sprintf(msg, "%i file(s) left", cntMissFiles - i); msgTxt.SetText(msg); sprintf(msg2, "%s", missingFiles[i]); @@ -4185,6 +4185,25 @@ int MainMenu(int menu) __io_wiisd.shutdown(); ExitApp(); + struct discHdr *header = &gameList[gameSelected]; + struct Game_CFG* game_cfg = CFG_get_game_opt(header->id); + + if (game_cfg) { + + videoChoice = game_cfg->video; + languageChoice = game_cfg->language; + ocarinaChoice = game_cfg->ocarina; + viChoice = game_cfg->vipatch; + + } else { + + videoChoice = Settings.video; + languageChoice = Settings.language; + ocarinaChoice = Settings.ocarina; + viChoice = Settings.vpatch; + } + + switch(languageChoice) { case ConsoleLangDefault: