mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-16 04:24:45 -07:00
Tidy up all applications data and resources paths
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user