2021-07-18 18:09:00 +00:00
|
|
|
#include "loader.h"
|
|
|
|
|
|
|
|
#include <furi.h>
|
2022-01-05 16:10:18 +00:00
|
|
|
#include <furi_hal.h>
|
2022-01-02 21:39:56 +00:00
|
|
|
#include <furi/pubsub.h>
|
2021-07-18 18:09:00 +00:00
|
|
|
#include <cli/cli.h>
|
2021-12-24 18:47:48 +00:00
|
|
|
#include <lib/toolbox/args.h>
|
2021-09-28 13:10:13 +00:00
|
|
|
|
|
|
|
#include <gui/view_dispatcher.h>
|
|
|
|
|
|
|
|
#include <gui/modules/menu.h>
|
|
|
|
#include <gui/modules/submenu.h>
|
|
|
|
|
2021-07-18 18:09:00 +00:00
|
|
|
#include <applications.h>
|
|
|
|
#include <assets_icons.h>
|
|
|
|
|
|
|
|
struct Loader {
|
2022-06-20 14:54:48 +00:00
|
|
|
FuriThreadId loader_thread;
|
2022-02-10 11:20:50 +00:00
|
|
|
|
|
|
|
const FlipperApplication* application;
|
|
|
|
FuriThread* application_thread;
|
|
|
|
char* application_arguments;
|
|
|
|
|
2021-07-18 18:09:00 +00:00
|
|
|
Cli* cli;
|
2021-09-28 13:10:13 +00:00
|
|
|
Gui* gui;
|
|
|
|
|
|
|
|
ViewDispatcher* view_dispatcher;
|
|
|
|
Menu* primary_menu;
|
|
|
|
Submenu* plugins_menu;
|
|
|
|
Submenu* debug_menu;
|
|
|
|
Submenu* settings_menu;
|
|
|
|
|
2022-02-10 11:20:50 +00:00
|
|
|
volatile uint8_t lock_count;
|
2022-01-02 21:39:56 +00:00
|
|
|
|
|
|
|
FuriPubSub* pubsub;
|
2021-07-18 18:09:00 +00:00
|
|
|
};
|
2021-09-28 13:10:13 +00:00
|
|
|
|
|
|
|
typedef enum {
|
|
|
|
LoaderMenuViewPrimary,
|
|
|
|
LoaderMenuViewPlugins,
|
|
|
|
LoaderMenuViewDebug,
|
|
|
|
LoaderMenuViewSettings,
|
|
|
|
} LoaderMenuView;
|