mirror of
https://gitlab.com/Nanolx/homebrewfilter.git
synced 2024-12-26 17:41:48 +01:00
bugfix: ensure apps/HomebrewFilter exists before updating
This commit is contained in:
parent
2a0f6bb7bf
commit
ad3a09bca7
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user