mirror of
https://github.com/CTCaer/hekate
synced 2024-12-22 11:21:23 +00:00
hos: Do not use custom kernel if stock
This commit is contained in:
parent
67a03bbd85
commit
1c19a69e35
1 changed files with 10 additions and 4 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue