Fix evil portal file browser path

This commit is contained in:
Willy-JL
2023-07-20 15:34:04 +01:00
parent 3f2bf81de3
commit 34c07b9d21
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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();
}
}