mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-23 02:16:41 +00:00
nyx: Remove L4T joycon driver mitigation
Seems that this was fixed long ago
This commit is contained in:
parent
53b44a525d
commit
26fff275ce
1 changed files with 5 additions and 15 deletions
|
@ -850,7 +850,7 @@ static void _launch_hos(u8 autoboot, u8 autoboot_list)
|
||||||
b_cfg->boot_cfg = BOOT_CFG_AUTOBOOT_EN;
|
b_cfg->boot_cfg = BOOT_CFG_AUTOBOOT_EN;
|
||||||
if (launch_logs_enable)
|
if (launch_logs_enable)
|
||||||
b_cfg->boot_cfg |= BOOT_CFG_FROM_LAUNCH;
|
b_cfg->boot_cfg |= BOOT_CFG_FROM_LAUNCH;
|
||||||
b_cfg->autoboot = autoboot & ~0x80;
|
b_cfg->autoboot = autoboot;
|
||||||
b_cfg->autoboot_list = autoboot_list;
|
b_cfg->autoboot_list = autoboot_list;
|
||||||
|
|
||||||
void (*main_ptr)() = (void *)nyx_str->hekate;
|
void (*main_ptr)() = (void *)nyx_str->hekate;
|
||||||
|
@ -859,10 +859,6 @@ static void _launch_hos(u8 autoboot, u8 autoboot_list)
|
||||||
|
|
||||||
hw_reinit_workaround(false, 0);
|
hw_reinit_workaround(false, 0);
|
||||||
|
|
||||||
// Mitigate L4T Joy-Con driver issue.
|
|
||||||
if ((autoboot & 0x80) && h_cfg.bootwait < 2)
|
|
||||||
msleep((2 - h_cfg.bootwait) * 1000);
|
|
||||||
|
|
||||||
(*main_ptr)();
|
(*main_ptr)();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1626,7 +1622,7 @@ ini_parsing:
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
icon_path = NULL;
|
icon_path = NULL;
|
||||||
u32 payload = 0;
|
bool payload = false;
|
||||||
bool img_colorize = false;
|
bool img_colorize = false;
|
||||||
lv_img_dsc_t *bmp = NULL;
|
lv_img_dsc_t *bmp = NULL;
|
||||||
lv_obj_t *img = NULL;
|
lv_obj_t *img = NULL;
|
||||||
|
@ -1637,13 +1633,7 @@ ini_parsing:
|
||||||
if (!strcmp("icon", kv->key))
|
if (!strcmp("icon", kv->key))
|
||||||
icon_path = kv->val;
|
icon_path = kv->val;
|
||||||
else if (!strcmp("payload", kv->key))
|
else if (!strcmp("payload", kv->key))
|
||||||
{
|
payload = true;
|
||||||
payload = 1;
|
|
||||||
|
|
||||||
// Mitigate L4T Joy-Con driver issue.
|
|
||||||
if (!memcmp(kv->val + strlen(kv->val) - 3, "rom", 3))
|
|
||||||
payload = 2;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// If icon not found, check res folder for section_name.bmp.
|
// If icon not found, check res folder for section_name.bmp.
|
||||||
|
@ -1710,9 +1700,9 @@ ini_parsing:
|
||||||
|
|
||||||
// Set autoboot index.
|
// Set autoboot index.
|
||||||
ext = lv_obj_get_ext_attr(btn);
|
ext = lv_obj_get_ext_attr(btn);
|
||||||
ext->idx = payload != 2 ? i : (i | 0x80);
|
ext->idx = i;
|
||||||
ext = lv_obj_get_ext_attr(launch_ctxt[curr_btn_idx]); // Redundancy.
|
ext = lv_obj_get_ext_attr(launch_ctxt[curr_btn_idx]); // Redundancy.
|
||||||
ext->idx = payload != 2 ? i : (i | 0x80);
|
ext->idx = i;
|
||||||
|
|
||||||
// Set action.
|
// Set action.
|
||||||
if (!more_cfg)
|
if (!more_cfg)
|
||||||
|
|
Loading…
Reference in a new issue