FFL
Loading...
Searching...
No Matches
FFLiCreateID.h
Go to the documentation of this file.
1#ifndef FFLI_CREATE_ID_H_
2#define FFLI_CREATE_ID_H_
3
4#include <nn/ffl/FFLCreateID.h>
5
6#ifdef __cplusplus
7extern "C" {
8#endif
9
10#define FFLI_CREATE_ID_BASE_SIZE (6)
11
12typedef struct FFLiCreateIDBase
13{
14 // Unsure if this is correct
15 union
16 {
19 };
20}
21FFLiCreateIDBase;
22NN_STATIC_ASSERT(sizeof(FFLiCreateIDBase) == FFLI_CREATE_ID_BASE_SIZE);
23
24#define FFLI_CREATE_ID_FLAG_UNKNOWN_0 (1 << 4)
25#define FFLI_CREATE_ID_FLAG_TEMPORARY (1 << 5)
26#define FFLI_CREATE_ID_FLAG_UNKNOWN_2 (1 << 6)
27#define FFLI_CREATE_ID_FLAG_NORMAL (1 << 7)
28
29typedef struct FFLiCreateID
30{
35 FFLiCreateIDBase base;
36}
37FFLiCreateID;
38NN_STATIC_ASSERT(sizeof(FFLiCreateID) == FFL_CREATE_ID_SIZE);
39
40BOOL FFLiIsNullMiiID(const FFLCreateID* pCreateID);
41
42void FFLiGetTemporaryMiiID(FFLCreateID* pCreateID);
43
44BOOL FFLiIsNormalMiiID(const FFLCreateID* pCreateID);
45BOOL FFLiIsSpecialMiiID(const FFLCreateID* pCreateID);
46BOOL FFLiIsNTRMiiID(const FFLCreateID* pCreateID);
47BOOL FFLiIsTemporaryMiiID(const FFLCreateID* pCreateID);
48
49BOOL FFLiIsValidMiiID(const FFLCreateID* pCreateID);
50BOOL FFLiIsSameMiiID(const FFLCreateID* a, const FFLCreateID* b);
51
52#ifdef __cplusplus
53}
54#endif
55
56#endif // FFLI_CREATE_ID_H_
#define FFL_CREATE_ID_SIZE
Definition FFLCreateID.h:10
NN_STATIC_ASSERT(sizeof(FFLiAllocator)==4)
BOOL FFLiIsNullMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:15
BOOL FFLiIsNTRMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:59
BOOL FFLiIsSpecialMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:54
BOOL FFLiIsSameMiiID(const FFLCreateID *a, const FFLCreateID *b)
Definition FFLiCreateID.cpp:83
BOOL FFLiIsNormalMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:48
BOOL FFLiIsValidMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:78
#define FFLI_CREATE_ID_BASE_SIZE
Definition FFLiCreateID.h:10
BOOL FFLiIsTemporaryMiiID(const FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:72
void FFLiGetTemporaryMiiID(FFLCreateID *pCreateID)
Definition FFLiCreateID.cpp:39
Definition FFLiCreateID.h:13
u8 data[FFLI_CREATE_ID_BASE_SIZE]
Definition FFLiCreateID.h:17
u16 value16[FFLI_CREATE_ID_BASE_SIZE/sizeof(u16)]
Definition FFLiCreateID.h:18
Definition FFLiCreateID.h:30
u8 _2
Definition FFLiCreateID.h:33
FFLiCreateIDBase base
Definition FFLiCreateID.h:35
u8 _1
Definition FFLiCreateID.h:32
u8 flags
Definition FFLiCreateID.h:31
u8 databaseIndex
Definition FFLiCreateID.h:34