Fix OmniNX brand rendering after ini_parse change
All checks were successful
Build / Build (push) Successful in 49s
All checks were successful
Build / Build (push) Successful in 49s
ini_parse() return-code semantics changed upstream; Nyx treated success as failure so OmniNX manifest data was ignored. Made-with: Cursor
This commit is contained in:
@@ -2008,7 +2008,8 @@ static void _get_home_brand_text(char *buf, size_t buf_size)
|
|||||||
link_t ini_sections;
|
link_t ini_sections;
|
||||||
list_init(&ini_sections);
|
list_init(&ini_sections);
|
||||||
int parsed = ini_parse(&ini_sections, "config/omninx/manifest.ini", false);
|
int parsed = ini_parse(&ini_sections, "config/omninx/manifest.ini", false);
|
||||||
if (!parsed)
|
// ini_parse() returns 0 on success, non-zero on failure.
|
||||||
|
if (parsed)
|
||||||
{
|
{
|
||||||
s_printf(buf, "%s%s", text_color, " hekate#");
|
s_printf(buf, "%s%s", text_color, " hekate#");
|
||||||
return;
|
return;
|
||||||
@@ -2027,13 +2028,14 @@ static void _get_home_brand_text(char *buf, size_t buf_size)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
ini_free(&ini_sections);
|
|
||||||
if (!pack)
|
if (!pack)
|
||||||
{
|
{
|
||||||
s_printf(buf, "%s%s", text_color, " hekate#");
|
s_printf(buf, "%s%s", text_color, " hekate#");
|
||||||
|
ini_free(&ini_sections);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
s_printf(buf, "%s hekate | OmniNX %s#", text_color, pack);
|
s_printf(buf, "%s hekate | OmniNX %s#", text_color, pack);
|
||||||
|
ini_free(&ini_sections);
|
||||||
}
|
}
|
||||||
|
|
||||||
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user