|
@@ -33,10 +33,14 @@ Evil_PortalApp *evil_portal_app_alloc() {
|
|
|
app->command_index = 0;
|
|
app->command_index = 0;
|
|
|
app->portal_logs = furi_string_alloc();
|
|
app->portal_logs = furi_string_alloc();
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+ app->dialogs = furi_record_open(RECORD_DIALOGS);
|
|
|
|
|
+ app->file_path = furi_string_alloc();
|
|
|
|
|
+
|
|
|
app->gui = furi_record_open(RECORD_GUI);
|
|
app->gui = furi_record_open(RECORD_GUI);
|
|
|
|
|
|
|
|
app->view_dispatcher = view_dispatcher_alloc();
|
|
app->view_dispatcher = view_dispatcher_alloc();
|
|
|
|
|
+
|
|
|
|
|
+ app->loading = loading_alloc();
|
|
|
|
|
|
|
|
app->scene_manager = scene_manager_alloc(&evil_portal_scene_handlers, app);
|
|
app->scene_manager = scene_manager_alloc(&evil_portal_scene_handlers, app);
|
|
|
view_dispatcher_enable_queue(app->view_dispatcher);
|
|
view_dispatcher_enable_queue(app->view_dispatcher);
|
|
@@ -52,6 +56,8 @@ Evil_PortalApp *evil_portal_app_alloc() {
|
|
|
view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui,
|
|
view_dispatcher_attach_to_gui(app->view_dispatcher, app->gui,
|
|
|
ViewDispatcherTypeFullscreen);
|
|
ViewDispatcherTypeFullscreen);
|
|
|
|
|
|
|
|
|
|
+ app->view_stack = view_stack_alloc();
|
|
|
|
|
+
|
|
|
app->var_item_list = variable_item_list_alloc();
|
|
app->var_item_list = variable_item_list_alloc();
|
|
|
view_dispatcher_add_view(app->view_dispatcher, Evil_PortalAppViewVarItemList,
|
|
view_dispatcher_add_view(app->view_dispatcher, Evil_PortalAppViewVarItemList,
|
|
|
variable_item_list_get_view(app->var_item_list));
|
|
variable_item_list_get_view(app->var_item_list));
|
|
@@ -100,6 +106,9 @@ void evil_portal_app_free(Evil_PortalApp *app) {
|
|
|
furi_string_free(app->text_box_store);
|
|
furi_string_free(app->text_box_store);
|
|
|
text_input_free(app->text_input);
|
|
text_input_free(app->text_input);
|
|
|
|
|
|
|
|
|
|
+ view_stack_free(app->view_stack);
|
|
|
|
|
+ loading_free(app->loading);
|
|
|
|
|
+
|
|
|
// View dispatcher
|
|
// View dispatcher
|
|
|
view_dispatcher_free(app->view_dispatcher);
|
|
view_dispatcher_free(app->view_dispatcher);
|
|
|
scene_manager_free(app->scene_manager);
|
|
scene_manager_free(app->scene_manager);
|
|
@@ -109,6 +118,9 @@ void evil_portal_app_free(Evil_PortalApp *app) {
|
|
|
// Close records
|
|
// Close records
|
|
|
furi_record_close(RECORD_GUI);
|
|
furi_record_close(RECORD_GUI);
|
|
|
|
|
|
|
|
|
|
+ furi_record_close(RECORD_DIALOGS);
|
|
|
|
|
+ furi_string_free(app->file_path);
|
|
|
|
|
+
|
|
|
free(app);
|
|
free(app);
|
|
|
}
|
|
}
|
|
|
|
|
|