Просмотр исходного кода

ensure flip_wifi folder is there

jblanked 1 год назад
Родитель
Сommit
128328de38
1 измененных файлов с 6 добавлено и 2 удалено
  1. 6 2
      flip_storage/flip_wifi_storage.c

+ 6 - 2
flip_storage/flip_wifi_storage.c

@@ -21,7 +21,7 @@ void save_playlist(WiFiPlaylist *playlist)
 
     // Create the directory for saving settings
     char directory_path[128];
-    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi/data");
+    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi");
 
     // Open storage
     Storage *storage = furi_record_open(RECORD_STORAGE);
@@ -33,6 +33,8 @@ void save_playlist(WiFiPlaylist *playlist)
 
     // Create the directory
     storage_common_mkdir(storage, directory_path);
+    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi/data");
+    storage_common_mkdir(storage, directory_path);
 
     // Open the settings file
     File *file = storage_file_alloc(storage);
@@ -334,7 +336,7 @@ bool save_char(
     }
     // Create the directory for saving settings
     char directory_path[256];
-    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi/data");
+    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi");
 
     // Create the directory
     Storage *storage = furi_record_open(RECORD_STORAGE);
@@ -344,6 +346,8 @@ bool save_char(
         return false;
     }
     storage_common_mkdir(storage, directory_path);
+    snprintf(directory_path, sizeof(directory_path), STORAGE_EXT_PATH_PREFIX "/apps_data/flip_wifi/data");
+    storage_common_mkdir(storage, directory_path);
 
     // Open the settings file
     File *file = storage_file_alloc(storage);