fix: fix desktop app loading cap

This commit is contained in:
2026-07-08 10:00:45 +02:00
parent d9d32deb3e
commit a39bc77ea5
4 changed files with 124 additions and 71 deletions
+6 -6
View File
@@ -17,8 +17,6 @@ namespace gui {
static constexpr int MAX_WINDOWS = 8;
static constexpr int PANEL_HEIGHT = 32;
static constexpr int MAX_EXTERNAL_APPS = 32;
static constexpr int MAX_LAUNCHER_ITEMS = 64;
// External app discovered from 0:/apps/ manifest
struct ExternalApp {
@@ -95,9 +93,10 @@ struct DesktopState {
bool launcher_open;
char launcher_query[64];
int launcher_query_len;
LauncherItem launcher_items[MAX_LAUNCHER_ITEMS];
LauncherItem* launcher_items; // dynamically grown
int launcher_item_count;
int launcher_results[MAX_LAUNCHER_ITEMS];
int launcher_item_capacity;
int* launcher_results; // indices into launcher_items, same capacity
int launcher_result_count;
int launcher_selected;
int launcher_scroll;
@@ -151,9 +150,10 @@ struct DesktopState {
SvgIcon icon_volume;
// External apps discovered from 0:/apps/ manifests
ExternalApp external_apps[MAX_EXTERNAL_APPS];
// External apps discovered from 0:/apps/ manifests (dynamically grown)
ExternalApp* external_apps;
int external_app_count;
int external_app_capacity;
bool ctx_menu_open;
int ctx_menu_x, ctx_menu_y;