FBT/SDK: New app flag UnloadAssetPacks to free RAM (#260)

* Store app flags in FAP header

* Add app flag to UnloadAssetPacks to free RAM

* Unload asset packs in NFC and MFKey

* Clearer size units

* Update changelog

* Future proof logic

* Sync apps
This commit is contained in:
WillyJL
2024-11-07 05:36:59 +00:00
committed by GitHub
parent e63808537e
commit 5eb5d75046
11 changed files with 122 additions and 29 deletions

View File

@@ -3,9 +3,11 @@
#include <furi.h>
#include <gui/icon.h>
typedef enum {
typedef enum FURI_PACKED {
FlipperApplicationFlagDefault = 0,
FlipperApplicationFlagInsomniaSafe = (1 << 0),
FlipperApplicationFlagUnloadAssetPacks = (1 << 7),
} FlipperApplicationFlag;
typedef struct {
@@ -21,7 +23,6 @@ typedef struct {
const char* name;
const Icon* icon;
const char* path;
const FlipperApplicationFlag flags;
} FlipperExternalApplication;
typedef void (*FlipperInternalOnStartHook)(void);