From ad3a09bca781d78bf9f316c9a15081cb3892b9ec Mon Sep 17 00:00:00 2001 From: Christopher Roy Bratusek Date: Thu, 19 Apr 2012 20:14:06 +0200 Subject: [PATCH] bugfix: ensure apps/HomebrewFilter exists before updating --- main/source/Prompts/prompt_update.cpp | 3 +++ updates | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/main/source/Prompts/prompt_update.cpp b/main/source/Prompts/prompt_update.cpp index c38ee10..f06b1c8 100644 --- a/main/source/Prompts/prompt_update.cpp +++ b/main/source/Prompts/prompt_update.cpp @@ -116,6 +116,9 @@ updatePrompt(string rev) if (file.data && file.size > 0) { // write file + if(opendir(check_path(Settings.device_dat + ":/apps/HomebrewFilter").c_str()) == NULL) + mkdir((Settings.device_dat + ":/apps/HomebrewFilter"), 0777) + FILE * data = fopen((Settings.device_dat + ":/apps/HomebrewFilter/boot.dol").c_str(), "wb"); if(data) { diff --git a/updates b/updates index d5f0c37..92f88c5 100644 --- a/updates +++ b/updates @@ -1,3 +1,7 @@ +//rev39: +- BUGFIX: before saving the update boot.dol, ensure directory + apps/HomebrewFilter exists, if not create it + //rev38: - changes to the app-info dialog: * DVD icon is now shown if necessary