makerom v0.7

This commit is contained in:
3DSGuy
2014-04-21 18:44:00 +08:00
parent 9cb89cbe8b
commit c2a18c961d
26 changed files with 787 additions and 300 deletions
+15 -1
View File
@@ -1,5 +1,7 @@
#pragma once
static const int CIA_ALIGN_SIZE = 0x40;
// Enums
typedef enum
{
@@ -121,4 +123,16 @@ typedef struct
} cia_settings;
// Public Prototypes
int build_CIA(user_settings *usrset);
int build_CIA(user_settings *usrset);
// Cia Read Functions
u64 GetCiaCertOffset(cia_hdr *hdr);
u64 GetCiaCertSize(cia_hdr *hdr);
u64 GetTikOffset(cia_hdr *hdr);
u64 GetTikSize(cia_hdr *hdr);
u64 GetTmdOffset(cia_hdr *hdr);
u64 GetTmdSize(cia_hdr *hdr);
u64 GetContentOffset(cia_hdr *hdr);
u64 GetContentSize(cia_hdr *hdr);
u64 GetMetaOffset(cia_hdr *hdr);
u64 GetMetaSize(cia_hdr *hdr);