bugfix: ensure apps/HomebrewFilter exists before updating

This commit is contained in:
Christopher Roy Bratusek 2012-04-19 20:14:06 +02:00
parent 2a0f6bb7bf
commit ad3a09bca7
2 changed files with 7 additions and 0 deletions

View File

@ -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)
{

View File

@ -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