1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-26 11:42:09 +00:00

hos: Do not use custom kernel if stock

This commit is contained in:
CTCaer 2020-11-15 13:45:45 +02:00
parent 67a03bbd85
commit 1c19a69e35

View file

@ -182,18 +182,24 @@ int parse_fss(launch_ctxt_t *ctxt, const char *path, fss0_sept_t *sept_ctxt)
list_append(&ctxt->kip1_list, &mkip1->link); list_append(&ctxt->kip1_list, &mkip1->link);
DPRINTF("Loaded %s.kip1 from FSS0 (size %08X)\n", curr_fss_cnt[i].name, curr_fss_cnt[i].size); DPRINTF("Loaded %s.kip1 from FSS0 (size %08X)\n", curr_fss_cnt[i].name, curr_fss_cnt[i].size);
break; break;
case CNT_TYPE_KRN:
if (stock)
continue;
ctxt->kernel_size = curr_fss_cnt[i].size;
ctxt->kernel = content;
break;
case CNT_TYPE_EXO: case CNT_TYPE_EXO:
ctxt->secmon_size = curr_fss_cnt[i].size; ctxt->secmon_size = curr_fss_cnt[i].size;
ctxt->secmon = content; ctxt->secmon = content;
break; break;
case CNT_TYPE_WBT: case CNT_TYPE_WBT:
ctxt->warmboot_size = curr_fss_cnt[i].size; ctxt->warmboot_size = curr_fss_cnt[i].size;
ctxt->warmboot = content; ctxt->warmboot = content;
break; break;
case CNT_TYPE_KRN:
ctxt->kernel_size = curr_fss_cnt[i].size;
ctxt->kernel = content;
break;
default: default:
continue; continue;
} }