mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 06:28:36 -07:00
Fix evil portal file browser path
This commit is contained in:
@@ -24,7 +24,7 @@
|
|||||||
#define RESET_CMD "reset"
|
#define RESET_CMD "reset"
|
||||||
|
|
||||||
#define EVIL_PORTAL_INDEX_EXTENSION ".html"
|
#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 {
|
struct Evil_PortalApp {
|
||||||
Gui* gui;
|
Gui* gui;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ static void evil_portal_close_storage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool evil_portal_read_index_html(void* context) {
|
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;
|
DialogsFileBrowserOptions browser_options;
|
||||||
dialog_file_browser_set_basic_options(
|
dialog_file_browser_set_basic_options(
|
||||||
@@ -132,4 +132,4 @@ void write_logs(FuriString* portal_logs) {
|
|||||||
storage_file_close(file);
|
storage_file_close(file);
|
||||||
storage_file_free(file);
|
storage_file_free(file);
|
||||||
evil_portal_close_storage();
|
evil_portal_close_storage();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user