Skip to content
Permalink
Browse files

i think my IQ is below 100 tbh

  • Loading branch information...
EliseZeroTwo committed Sep 30, 2019
1 parent 5ac078c commit eedaf8a5e1296c6f44081c961d69c515d3c892e2
Showing with 6 additions and 7 deletions.
  1. +4 −5 src/firmware.c
  2. +1 −1 src/kippatches/fs.inc
  3. +1 −1 src/package.c
@@ -118,12 +118,11 @@ u8 loadFirm() {

// Patch firmware.
print("%k\nPatching HOS:\n%k", WHITE, DEFAULT_TEXT_COL);
//patchWarmboot(pk11Offs->warmboot_base);
//patchSecmon(pk11Offs->secmon_base, pk11Offs->kb);
patchWarmboot(pk11Offs->warmboot_base);
patchSecmon(pk11Offs->secmon_base, pk11Offs->kb);
patchKernel(dec_pkg2);
patchKernelExtensions(&kip1_info);

//memcpy((void *)0xA9800000, pkg2, pkg2_size);
// Build Package2.
buildFirmwarePackage(dec_pkg2->data, dec_pkg2->sec_size[PKG2_SEC_KERNEL], &kip1_info, pk11Offs);
}
@@ -283,12 +282,12 @@ void firmware() {
}
}

/* //Determine if booting in verbose mode
//Determine if booting in verbose mode
if (btn_read() & BTN_VOL_DOWN) {
print("%kWelcome to ReiNX %d.%d!\n%k", WHITE, VERSION_MAJOR, VERSION_MINOR, DEFAULT_TEXT_COL);
} else if (drawSplash()) {
gfx_con.mute = 1;
}*/
}

//Setup cfw
loadFirm();
@@ -421,6 +421,6 @@ static kippatch_t fs_kip_patches_810_exfat[] = {

static kippatch_t fs_kip_patches_900[] = {
{ "nosighchk", fs_diffs_900_nosigchk },
{ "nogcc", fs_diffs_900_nogc },
{ "nogc", fs_diffs_900_nogc },
{ NULL, NULL}
};
@@ -257,7 +257,7 @@ void buildFirmwarePackage(u8 *kernel, u32 kernel_size, link_t *kips_info, pk11_o
hdr->sec_off[PKG2_SEC_KERNEL] = hdr->base;
hdr->sec_size[PKG2_SEC_KERNEL] = kernel_size;
hdr->sec_off[PKG2_SEC_INI1] = new_pkg2 ? 0 : 0x14080000;
hdr->sec_size[PKG2_SEC_INI1] = new_pkg2 ? 0 : 0;
hdr->sec_size[PKG2_SEC_INI1] = new_pkg2 ? 0 : iniSize;

// Encrypt header.
*(u32 *)hdr->ctr = 0x100 + sizeof(pkg2_hdr_t) + kernel_size + hdr->sec_size[PKG2_SEC_INI1];

1 comment on commit eedaf8a

@JamePeng

This comment has been minimized.

Copy link

commented on eedaf8a Oct 4, 2019

lol

Please sign in to comment.
You can’t perform that action at this time.