Removed Pack version from Homescreen

This commit is contained in:
2026-02-06 15:42:41 +01:00
parent b98fd26c33
commit 4eead2c14d
2 changed files with 4 additions and 7 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -2010,7 +2010,7 @@ failed_sd_mount:
return LV_RES_OK; return LV_RES_OK;
} }
// Fills buf with theme-colored brand text: "hekate | OmniNX X.X.X Pack" from manifest.ini, or "hekate" if missing. // Fills buf with theme-colored brand text: "hekate | OmniNX <pack>" from manifest.ini, or "hekate" if missing.
static void _get_home_brand_text(char *buf, size_t buf_size) static void _get_home_brand_text(char *buf, size_t buf_size)
{ {
// SD is unmounted when the main menu is built; mount so we can read the manifest. // SD is unmounted when the main menu is built; mount so we can read the manifest.
@@ -2023,7 +2023,6 @@ static void _get_home_brand_text(char *buf, size_t buf_size)
s_printf(buf, "%s%s", text_color, " hekate#"); s_printf(buf, "%s%s", text_color, " hekate#");
return; return;
} }
const char *version = NULL;
const char *pack = NULL; const char *pack = NULL;
LIST_FOREACH_ENTRY(ini_sec_t, ini_sec, &ini_sections, link) LIST_FOREACH_ENTRY(ini_sec_t, ini_sec, &ini_sections, link)
{ {
@@ -2031,9 +2030,7 @@ static void _get_home_brand_text(char *buf, size_t buf_size)
continue; continue;
LIST_FOREACH_ENTRY(ini_kv_t, kv, &ini_sec->kvs, link) LIST_FOREACH_ENTRY(ini_kv_t, kv, &ini_sec->kvs, link)
{ {
if (!strcmp(kv->key, "version")) if (!strcmp(kv->key, "current_pack"))
version = kv->val;
else if (!strcmp(kv->key, "current_pack"))
pack = kv->val; pack = kv->val;
else if (!pack && !strcmp(kv->key, "channel_pack")) else if (!pack && !strcmp(kv->key, "channel_pack"))
pack = kv->val; pack = kv->val;
@@ -2041,12 +2038,12 @@ static void _get_home_brand_text(char *buf, size_t buf_size)
break; break;
} }
ini_free(&ini_sections); ini_free(&ini_sections);
if (!version || !pack) if (!pack)
{ {
s_printf(buf, "%s%s", text_color, " hekate#"); s_printf(buf, "%s%s", text_color, " hekate#");
return; return;
} }
s_printf(buf, "%s hekate | OmniNX %s %s#", text_color, pack, version); s_printf(buf, "%s hekate | OmniNX %s#", text_color, pack);
} }
static void _create_tab_home(lv_theme_t *th, lv_obj_t *parent) static void _create_tab_home(lv_theme_t *th, lv_obj_t *parent)