Tidy up all applications data and resources paths

This commit is contained in:
Willy-JL
2023-07-01 02:31:37 +02:00
parent f918f746c4
commit 690d4eb661
81 changed files with 700 additions and 121 deletions

View File

@@ -25,7 +25,7 @@ bool brainfuck_scene_file_create_on_event(void* context, SceneManagerEvent event
bool consumed = false;
if(event.type == SceneManagerEventTypeCustom) {
if(event.event == brainfuckCustomEventTextInputDone) {
furi_string_cat_printf(app->BF_file_path, "/ext/brainfuck/%s.b", tmpName);
furi_string_cat_printf(app->BF_file_path, APP_DATA_PATH("%s.b"), tmpName);
//remove old file
Storage* storage = furi_record_open(RECORD_STORAGE);

View File

@@ -6,11 +6,11 @@ void brainfuck_scene_file_select_on_enter(void* context) {
DialogsApp* dialogs = furi_record_open("dialogs");
FuriString* path;
path = furi_string_alloc();
furi_string_set(path, "/ext/brainfuck");
furi_string_set(path, STORAGE_APP_DATA_PATH_PREFIX);
DialogsFileBrowserOptions browser_options;
dialog_file_browser_set_basic_options(&browser_options, ".b", &I_bfico);
browser_options.base_path = "/ext/brainfuck";
browser_options.base_path = STORAGE_APP_DATA_PATH_PREFIX;
browser_options.hide_ext = false;
bool selected = dialog_file_browser_show(dialogs, path, path, &browser_options);