From 74f1df1e4d82fdb19103c8feaa279ea135c26316 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Wed, 28 Nov 2012 19:23:35 +0100 Subject: [PATCH] fixup previous command --- installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes main/source/Prompts/prompt_end.cpp | 27 +++++++++++++-------------- main/source/main.cpp | 16 +++++++--------- 3 files changed, 20 insertions(+), 23 deletions(-) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 6dc9fc2bddd7c7978a66d6583ef5d66b016c07d6..6edcf8bdb83e422e4389d2d9c797d492feff59e1 100644 GIT binary patch delta 32 ocmcb>a)D)o1e3@~*Wz_{rCtdlO>Y&h>mA$jEiPSsvJR690N1As`~Uy| delta 32 qcmV+*0N?-61kePq7y=Yn>?{1X!^!z)Mc3((a9X7gly6IuECM9|8V=h4 diff --git a/main/source/Prompts/prompt_end.cpp b/main/source/Prompts/prompt_end.cpp index 5a65e12..2f6d076 100644 --- a/main/source/Prompts/prompt_end.cpp +++ b/main/source/Prompts/prompt_end.cpp @@ -5,6 +5,7 @@ #include "main.h" #include "menu.h" #include "Tools/SelectIos.h" +#include "xprintf.h" extern bool runaway; extern bool restarthbf; @@ -54,16 +55,18 @@ endPrompt() GuiImage systemmenuImgOver(&btn_over); GuiImage shutdownImgOver(&btn_over); - GuiText bootmiiTxt(tr("Launch BootMii (IOS)"), 22, (GXColor){Theme.button_small_text_1, Theme.button_small_text_2, Theme.button_small_text_3, 255}); - if(get_bootmii() == 3) - GuiText bootmiiTxt(tr("Launch BootMii (Boot2)"), 22, (GXColor){Theme.button_small_text_1, Theme.button_small_text_2, Theme.button_small_text_3, 255}); - GuiButton bootmii(btn.GetWidth(), btn.GetHeight()); - bootmii.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); - bootmii.SetPosition(0, 75); - bootmii.SetLabel(&bootmiiTxt); - bootmii.SetImage(&bootmiiImg); - bootmii.SetImageOver(&bootmiiImgOver); - bootmii.SetTrigger(&trigA); + GuiText bootmiiTxtBoot2(tr("Launch BootMii (Boot2)"), 22, (GXColor){Theme.button_small_text_1, Theme.button_small_text_2, Theme.button_small_text_3, 255}); + GuiText bootmiiTxtIOS(tr("Launch BootMii (IOS)"), 22, (GXColor){Theme.button_small_text_1, Theme.button_small_text_2, Theme.button_small_text_3, 255}); + GuiButton bootmii(btn.GetWidth(), btn.GetHeight()); + if(get_bootmii() == 3) + bootmii.SetLabel(&bootmiiTxtBoot2); + else + bootmii.SetLabel(&bootmiiTxtIOS); + bootmii.SetAlignment(ALIGN_CENTRE, ALIGN_TOP); + bootmii.SetPosition(0, 75); + bootmii.SetImage(&bootmiiImg); + bootmii.SetImageOver(&bootmiiImgOver); + bootmii.SetTrigger(&trigA); GuiText hbfTxt(tr("Restart HBF"), 22, (GXColor){Theme.button_small_text_1, Theme.button_small_text_2, Theme.button_small_text_3, 255}); GuiButton hbf(btn.GetWidth(), btn.GetHeight()); @@ -124,10 +127,6 @@ endPrompt() if(bootmii.GetState() == STATE_CLICKED) { - if(get_bootmii() == 3) - set_bootmii(4); - else - set_bootmii(2); menu = MENU_EXIT; stop = true; } diff --git a/main/source/main.cpp b/main/source/main.cpp index d5ae127..1aa0a48 100644 --- a/main/source/main.cpp +++ b/main/source/main.cpp @@ -149,7 +149,6 @@ DefaultSettings() Settings.last_app_pos = -1; Settings.checkrev = -1; sprintf (Settings.code, "NULL"); - Settings.Apps_from = EFFECT_SLIDE_TOP; // Apps kommen von "EFFECT_SLIDE_TOP", "EFFECT_SLIDE_BOTTOM", "EFFECT_SLIDE_RIGHT", "EFFECT_SLIDE_LEFT" Settings.Apps_to = 0; // Apps geht nach "EFFECT_SLIDE_TOP", "EFFECT_SLIDE_BOTTOM", "EFFECT_SLIDE_RIGHT", "EFFECT_SLIDE_LEFT" Settings.grid = false; @@ -277,9 +276,14 @@ main(int argc, char *argv[]) BootHomebrew(); } - if(get_bootmii() == 2) + if(get_bootmii() != 0) { - if(!check_uneek_fs()) + if(Options.bootmii_boot2) + { + xprintf("Load BootMii (Boot2)\n"); + SYS_ResetSystem(SYS_RESTART, 0, 0); + } + else if(!check_uneek_fs()) { xprintf("Load BootMii (IOS)\n"); IOS_ReloadIOS(254); @@ -293,12 +297,6 @@ main(int argc, char *argv[]) } } - if(get_bootmii() == 4) - { - xprintf("Load BootMii (Boot2)\n"); - SYS_ResetSystem(SYS_RESTART, 0, 0); - } - if(get_nandemu() == 2) { if (opendir(check_path("sd1:/apps/NANDEmu-Boot").c_str()) != NULL)