forked from Luca1991/NDSFactory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ndsheader.h
74 lines (55 loc) · 1.47 KB
/
ndsheader.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#ifndef NDSHEADER_H
#define NDSHEADER_H
#include <cstdint>
#define IconTitleSize 0xA00
#define Arm9FooterSize 0xC
#pragma pack(push, 1)
struct NDSHeader
{
char GameTitle[0xC];
char GameCode[0x4];
unsigned char MakerCode[0x2];
unsigned char UnitCode;
unsigned char DeviceType;
unsigned char DeviceSize;
unsigned char Reserved1[0x9];
unsigned char RomVersion;
unsigned char Flags;
uint32_t Arm9RomAddr;
uint32_t Arm9EntryAddr;
uint32_t Arm9RamAddr;
uint32_t Arm9Size;
uint32_t Arm7RomAddr;
uint32_t Arm7EntryAddr;
uint32_t Arm7RamAddr;
uint32_t Arm7Size;
uint32_t FilenameTableAddr;
uint32_t FilenameSize;
uint32_t FATAddr;
uint32_t FATSize;
uint32_t Arm9OverlayAddr;
uint32_t Arm9OverlaySize;
uint32_t Arm7OverlayAddr;
uint32_t Arm7OverlaySize;
uint32_t NormalCommandsSettings;
uint32_t Key1CommandsSettings;
uint32_t IconTitleAddr;
uint16_t SecureAreaCRC16;
uint16_t SecureAreaLoadingTimeout;
uint32_t ARM9AutoLoadListRamAddr;
uint32_t ARM7AutoLoadListRamAddr;
uint64_t SecureAreaDisable;
uint32_t RomSize;
uint32_t HeaderSize;
unsigned char Reserved2[0x38];
unsigned char NintendoLogo[0x9C];
uint16_t NintendoLogoCRC;
uint16_t HeaderCRC16;
uint32_t DebugRomAddr;
uint32_t DebugSize;
uint32_t DebugRamAddr;
unsigned char Reserved3[0x4];
unsigned char Reserved4[0x90];
};
#pragma pack(pop)
#endif // NDSHEADER_H