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/injector/source/patcher.h

20 lines
674 B
C
Raw Normal View History

#pragma once
#include <3ds/types.h>
#define PATH_MAX 255
2016-08-26 22:24:23 +02:00
#define CONFIG(a) (((info.config >> (a + 20)) & 1) != 0)
2016-08-26 22:24:23 +02:00
#define MULTICONFIG(a) ((info.config >> (a * 2 + 6)) & 3)
#define BOOTCONFIG(a, b) ((info.config >> a) & b)
#define BOOTCFG_NAND BOOTCONFIG(0, 3)
#define BOOTCFG_FIRM BOOTCONFIG(2, 1)
#define BOOTCFG_SAFEMODE BOOTCONFIG(5, 1)
#define CONFIG_NEWCPU MULTICONFIG(2)
2016-09-04 13:54:52 +02:00
#define CONFIG_DEVOPTIONS MULTICONFIG(3)
#define CONFIG_USESYSFIRM CONFIG(1)
#define CONFIG_USELANGEMUANDCODE CONFIG(3)
#define CONFIG_SHOWNAND CONFIG(4)
2016-04-04 18:19:00 +02:00
void patchCode(u64 progId, u8 *code, u32 size);