diff --git a/installer/wad/0001000154484246.tmd b/installer/wad/0001000154484246.tmd index 954f82f..6922738 100644 Binary files a/installer/wad/0001000154484246.tmd and b/installer/wad/0001000154484246.tmd differ diff --git a/source/Prompts/prompt_update.cpp b/source/Prompts/prompt_update.cpp index 2c0ddc6..f287f4b 100644 --- a/source/Prompts/prompt_update.cpp +++ b/source/Prompts/prompt_update.cpp @@ -14,8 +14,10 @@ #include "Network/update.h" #include "Network/http.h" +#include +#include -#/*** Extern variables ***/ +/*** Extern variables ***/ extern GuiWindow * mainWindow; extern bool boot_buffer; @@ -101,6 +103,12 @@ updatePrompt(string rev) char url[100]; sprintf(url, "http://download.tuxfamily.org/hbf/DOL/rev%s/boot.dol", rev.c_str()); + // copy boot.dol to prev.dol + std::ifstream infile((Settings.device_dat + ":/apps/HomebrewFilter/boot.dol").c_str(), std::ios_base::binary); + std::ofstream outfile((Settings.device_dat + ":/apps/HomebrewFilter/prev.dol").c_str(), std::ios_base::binary); + + outfile << infile.rdbuf(); + struct block file = downloadfile(url); if (file.data && file.size > 0) { diff --git a/updates b/updates index a6d41f1..3c9f038 100644 --- a/updates +++ b/updates @@ -1,3 +1,6 @@ +//rev37: +- before updating copy the old boot.dol to prev.dol + //rev36: - HBF is now OpenSource! - Added license-text of GNU GPL v2