Add more define constants for file magics.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
|
||||
#include "../types.h"
|
||||
|
||||
#define SMDH_MAGIC "SMDH"
|
||||
|
||||
#define SMDH_NUM_LANGUAGE_SLOTS 16
|
||||
#define SMDH_NUM_VALID_LANGUAGE_SLOTS 12
|
||||
|
||||
|
||||
Reference in New Issue
Block a user