This repository has been archived on 2022-05-31. You can view files and clone it, but cannot push or open issues or pull requests.
Luma3DS-3GX/source/patches.h

30 lines
949 B
C
Raw Normal View History

2015-08-05 03:57:37 +02:00
/*
* patches.h
*/
2016-03-06 03:41:07 +01:00
#pragma once
2015-08-05 03:57:37 +02:00
#include "types.h"
/**************************************************
* Patches
**************************************************/
const u32 mpuPatch[3];
2016-04-26 20:06:31 +02:00
const u16 nandRedir[2],
sigPatch[2],
writeBlock[2],
writeBlockSafe[2];
const u8 unitInfoPatch;
2016-05-12 02:59:21 +02:00
const u8 svcBackdoor[40];
/**************************************************
* Functions
**************************************************/
u8 *getProcess9(u8 *pos, u32 size, u32 *process9Size, u32 *process9MemAddr);
2016-05-12 13:35:39 +02:00
void getSigChecks(u8 *pos, u32 size, u16 **off, u16 **off2);
void *getReboot(u8 *pos, u32 size, u32 process9MemAddr, u32 *fOpenOffset);
u16 *getFirmWrite(u8 *pos, u32 size);
u16 *getFirmWriteSafe(u8 *pos, u32 size);
u8 *getUnitInfoValueSet(u8 *pos, u32 size);
u32 getLoader(u8 *pos, u32 *loaderSize);
2016-05-12 12:24:14 +02:00
u32 *getSvcAndExceptions(u8 *pos, u32 size, u32 **exceptionsPage);