Explorar o código

Move config to apps_data

theageoflove %!s(int64=2) %!d(string=hai) anos
pai
achega
89b0c23ed1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      zeitraffer.c

+ 2 - 2
zeitraffer.c

@@ -7,7 +7,7 @@
 #include "gpio_item.h"
 #include "zeitraffer_icons.h"
 
-#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps/Misc"
+#define CONFIG_FILE_DIRECTORY_PATH "/ext/apps_data/zeitraffer"
 #define CONFIG_FILE_PATH CONFIG_FILE_DIRECTORY_PATH "/zeitraffer.conf"
 
 // Часть кода покрадена из https://github.com/zmactep/flipperzero-hello-world
@@ -157,7 +157,7 @@ int32_t zeitraffer_app(void* p) {
 	FlipperFormat* load = flipper_format_file_alloc(storage);
   
 	do {
-
+		if(!storage_simply_mkdir(storage, CONFIG_FILE_DIRECTORY_PATH)) {notification_message(notifications, &sequence_error); break;}
 		if(!flipper_format_file_open_existing(load, CONFIG_FILE_PATH)) {notification_message(notifications, &sequence_error); break;}
 		if(!flipper_format_read_int32(load, "Time", &Time, 1)) {notification_message(notifications, &sequence_error); break;}
 		if(!flipper_format_read_int32(load, "Count", &Count, 1)) {notification_message(notifications, &sequence_error); break;}