Add more define constants for file magics.

This commit is contained in:
Steveice10
2017-02-18 14:17:30 -08:00
parent 08ab0d1c2c
commit b394534ac9
3 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -5,6 +5,8 @@
#include <stdlib.h>
#include <string.h>
#define CBMD_MAGIC "CBMD"
typedef struct {
char magic[4];
u32 zero;
@@ -17,7 +19,7 @@ static void* cbmd_build_data(u32* size, CBMD cbmd, bool bnr) {
CBMDHeader header;
memset(&header, 0, sizeof(header));
memcpy(header.magic, "CBMD", sizeof(header.magic));
memcpy(header.magic, CBMD_MAGIC, sizeof(header.magic));
u32 outputSize = sizeof(CBMDHeader);
+2
View File
@@ -3,6 +3,8 @@
#include "../types.h"
#define SMDH_MAGIC "SMDH"
#define SMDH_NUM_LANGUAGE_SLOTS 16
#define SMDH_NUM_VALID_LANGUAGE_SLOTS 12