From 34c07b9d213445d80ba1abfa301a677a13ec37a0 Mon Sep 17 00:00:00 2001 From: Willy-JL <49810075+Willy-JL@users.noreply.github.com> Date: Thu, 20 Jul 2023 15:34:04 +0100 Subject: [PATCH] Fix evil portal file browser path --- applications/external/evil_portal/evil_portal_app_i.h | 2 +- .../external/evil_portal/helpers/evil_portal_storage.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/applications/external/evil_portal/evil_portal_app_i.h b/applications/external/evil_portal/evil_portal_app_i.h index ff366281a..eeda72b70 100644 --- a/applications/external/evil_portal/evil_portal_app_i.h +++ b/applications/external/evil_portal/evil_portal_app_i.h @@ -24,7 +24,7 @@ #define RESET_CMD "reset" #define EVIL_PORTAL_INDEX_EXTENSION ".html" -#define EVIL_PORTAL_BASE_FOLDER "/apps_data/evil_portal/" +#define EVIL_PORTAL_BASE_FOLDER STORAGE_APP_DATA_PATH_PREFIX struct Evil_PortalApp { Gui* gui; diff --git a/applications/external/evil_portal/helpers/evil_portal_storage.c b/applications/external/evil_portal/helpers/evil_portal_storage.c index f05f0a36b..aa9a50493 100644 --- a/applications/external/evil_portal/helpers/evil_portal_storage.c +++ b/applications/external/evil_portal/helpers/evil_portal_storage.c @@ -9,7 +9,7 @@ static void evil_portal_close_storage() { } bool evil_portal_read_index_html(void* context) { - FuriString* file_path = furi_string_alloc(); + FuriString* file_path = furi_string_alloc_set(EVIL_PORTAL_BASE_FOLDER); DialogsFileBrowserOptions browser_options; dialog_file_browser_set_basic_options( @@ -132,4 +132,4 @@ void write_logs(FuriString* portal_logs) { storage_file_close(file); storage_file_free(file); evil_portal_close_storage(); -} \ No newline at end of file +}