Restore home menu order (#2384)

* Fix ext notice position ( No need to alter the position of the ext app notice, as there is no back button on the home screen )
* add desired position to external apps
* read and store desired location
* apply ext apps desired order
* fix memory alignment in application_information_t
This commit is contained in:
E.T.
2024-11-23 21:37:03 +01:00
committed by GitHub
parent e6a099913a
commit 69271632ae
38 changed files with 130 additions and 56 deletions

View File

@@ -27,7 +27,7 @@
#include "spi_image.hpp"
#include "standalone_app.hpp"
#define CURRENT_HEADER_VERSION 0x00000002
#define CURRENT_HEADER_VERSION 0x00000003
#define MIN_HEADER_VERSION_FOR_CHECKSUM 0x00000002
typedef void (*externalAppEntry_t)(ui::NavigationView& nav);
@@ -42,6 +42,7 @@ struct application_information_t {
uint8_t bitmap_data[32];
uint32_t icon_color;
app_location_t menu_location;
int32_t desired_menu_position;
portapack::spi_flash::image_tag_t m4_app_tag;
uint32_t m4_app_offset;