From 5e9d21609da8e6ebaae387d5104e6e1f2c4dd597 Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Sun, 26 Aug 2012 23:20:09 +0200 Subject: [PATCH] fixed a bug in online-updates -- updated rev40.dol on server --- installer/wad/0001000154484246.tmd | Bin 592 -> 592 bytes main/source/Prompts/prompt_update.cpp | 5 +++-- main/source/main.cpp | 8 ++++++++ updates | 4 ++++ 4 files changed, 15 insertions(+), 2 deletions(-) diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 3594c27e976fb5456e47bee6392f4dbf096581f2..3d8a2b2a13dc8eea0d0ecb79223bd661f02e3191 100644 GIT binary patch delta 32 ocmcb>a)D)o1e1uLtCYbRW-lA|s@Gmyq*7ZxetX0-S%*ml0J(q*-~a#s delta 32 ocmcb>a)D)o1d~WiPG_B(dgHSaX4Y$Zfo9q_ZGG}5>oBPR0KGN}@&Et; diff --git a/main/source/Prompts/prompt_update.cpp b/main/source/Prompts/prompt_update.cpp index 56bedc9..7a5e414 100644 --- a/main/source/Prompts/prompt_update.cpp +++ b/main/source/Prompts/prompt_update.cpp @@ -20,6 +20,7 @@ /*** Extern variables ***/ extern GuiWindow * mainWindow; extern bool boot_buffer; +extern bool updatehbf; /*** Extern functions ***/ extern void ResumeGui(); @@ -129,8 +130,8 @@ updatePrompt(string rev) if(file.data) free(file.data); - LoadHomebrew ((Settings.device_dat + ":/apps/HomebrewFilter/boot.dol").c_str()); - BootHomebrew (); + boot_buffer = true; + updatehbf = true; } else { diff --git a/main/source/main.cpp b/main/source/main.cpp index fa037f1..e396ed8 100644 --- a/main/source/main.cpp +++ b/main/source/main.cpp @@ -65,6 +65,7 @@ bool wiiload = false; bool goneek2o = false; bool gorealnand = false; bool restarthbf = false; +bool updatehbf = false; bool gosegui = false; const char* segui_loc; bool runaway = false; @@ -305,6 +306,13 @@ main(int argc, char *argv[]) if(restarthbf) WII_LaunchTitle(0x0001000154484246); + if(updatehbf) + { + Settings.force_reload = "NORELOAD"; + LoadHomebrew ((Settings.device_dat + ":/apps/HomebrewFilter/boot.dol").c_str()); + BootHomebrew(); + } + if(gosegui) { LoadHomebrew(segui_loc); diff --git a/updates b/updates index 4f93d64..6dc734a 100644 --- a/updates +++ b/updates @@ -14,6 +14,10 @@ must be :/apps/SettingsEditorGUI/boot.dol on any device (all sd, usb, dvd, sd gecko a and sd gecko b supported) - remove back button from exit prompt (press B/HOME to go back) +- fixed a bug in online-updates (if online-update fails, + simply boot 'The HomebrewFilter', the updated boot.dol + is already saved on your SD-Card (or USB-HDD)) - future + online-updates will work normally again. - For theme designers: the following new icons have been added: * gca_active (device menu) * gca_inactive (device menu)