diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/MSL_C/MSL_Common/qsort.h (renamed from include/libstdc++/qsort.h) | 0 | ||||
-rw-r--r-- | include/MSL_C/stdlib.h | 15 | ||||
-rw-r--r-- | include/MSL_C/string.h | 18 | ||||
-rw-r--r-- | include/Runtime/MWCPlusLib.h (renamed from include/libstdc++/CPlusLib.h) | 0 | ||||
-rw-r--r-- | include/SDK/DVD/dvdfs.h | 15 | ||||
-rw-r--r-- | include/SDK/DWC/gamespy/darray.h (renamed from include/GameSpy/darray.h) | 0 | ||||
-rw-r--r-- | include/SDK/DWC/gamespy/hashtable.h (renamed from include/GameSpy/hashtable.h) | 2 | ||||
-rw-r--r-- | include/SDK/DWC/gamespy/nonport.h (renamed from include/GameSpy/nonport.h) | 0 | ||||
-rw-r--r-- | include/SDK/NAND/NANDOpenClose.h | 19 | ||||
-rw-r--r-- | include/SDK/nand.h | 3 | ||||
-rw-r--r-- | include/code_801DCE6C.h | 12 |
11 files changed, 75 insertions, 9 deletions
diff --git a/include/libstdc++/qsort.h b/include/MSL_C/MSL_Common/qsort.h index c13ae0e..c13ae0e 100644 --- a/include/libstdc++/qsort.h +++ b/include/MSL_C/MSL_Common/qsort.h diff --git a/include/MSL_C/stdlib.h b/include/MSL_C/stdlib.h new file mode 100644 index 0000000..bf86bca --- /dev/null +++ b/include/MSL_C/stdlib.h @@ -0,0 +1,15 @@ +#ifndef POKEREVO_STDLIB_H
+#define POKEREVO_STDLIB_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void qsort(void *base, u32 nmemb, u32 size,
+ s32 (*compar)(const void *, const void *));
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_STDLIB_H
diff --git a/include/MSL_C/string.h b/include/MSL_C/string.h new file mode 100644 index 0000000..83b7bd0 --- /dev/null +++ b/include/MSL_C/string.h @@ -0,0 +1,18 @@ +#ifndef POKEREVO_STRING_H
+#define POKEREVO_STRING_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void *memset(void *s, int c, size_t n);
+void *memmove(void *dest, const void *src, size_t n);
+void *memcpy(void *dest, const void *src, size_t n);
+int strcmp(const char *s1, const char *s2);
+int strncmp(const char *s1, const char *s2, size_t n);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_STRING_H
diff --git a/include/libstdc++/CPlusLib.h b/include/Runtime/MWCPlusLib.h index 819c0a9..819c0a9 100644 --- a/include/libstdc++/CPlusLib.h +++ b/include/Runtime/MWCPlusLib.h diff --git a/include/SDK/DVD/dvdfs.h b/include/SDK/DVD/dvdfs.h index a5283eb..444ae92 100644 --- a/include/SDK/DVD/dvdfs.h +++ b/include/SDK/DVD/dvdfs.h @@ -5,6 +5,18 @@ extern "C" {
#endif
+// TODO: not a nested class, but a struct from the SDK. Referenced
+// by DVDFileInfo
+struct gUnkClass6
+{
+ u8 unk0;
+ u8 unk1;
+ char unk2[0x5];
+ char unk7[0x41];
+ NANDFileInfo unk48;
+ u8 unkD3[0xBD];
+};
+
typedef struct DVDFileInfo DVDFileInfo;
typedef void (*DVDCallback)(s32 result, DVDFileInfo* fileInfo);
@@ -13,7 +25,8 @@ struct DVDFileInfo {
u8 unk0[0x34];
size_t unk34;
- u8 unk38[0x8];
+ u8 unk38[0x4];
+ gUnkClass6* unk3C; // TODO: determine type
void (*unk40)(s32, void*);
void* unk44;
u32 unk48;
diff --git a/include/GameSpy/darray.h b/include/SDK/DWC/gamespy/darray.h index 5c7c170..5c7c170 100644 --- a/include/GameSpy/darray.h +++ b/include/SDK/DWC/gamespy/darray.h diff --git a/include/GameSpy/hashtable.h b/include/SDK/DWC/gamespy/hashtable.h index 26e0b6d..beb4812 100644 --- a/include/GameSpy/hashtable.h +++ b/include/SDK/DWC/gamespy/hashtable.h @@ -5,7 +5,7 @@ extern "C" {
#endif
-#include "GameSpy/darray.h"
+#include <DWC/gamespy/darray.h>
typedef s32 (*HashFunction)(void *, s32);
diff --git a/include/GameSpy/nonport.h b/include/SDK/DWC/gamespy/nonport.h index c1ed0e7..c1ed0e7 100644 --- a/include/GameSpy/nonport.h +++ b/include/SDK/DWC/gamespy/nonport.h diff --git a/include/SDK/NAND/NANDOpenClose.h b/include/SDK/NAND/NANDOpenClose.h new file mode 100644 index 0000000..2a93acd --- /dev/null +++ b/include/SDK/NAND/NANDOpenClose.h @@ -0,0 +1,19 @@ +#ifndef POKEREVO_NANDOPENCLOSE_H
+#define POKEREVO_NANDOPENCLOSE_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct NANDFileInfo
+{
+ u8 unk0[0x8B]; // TODO: determine actual size
+} NANDFileInfo;
+
+s32 NANDOpen(const char* path, NANDFileInfo* info, u8 accType);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_NANDOPENCLOSE_H
diff --git a/include/SDK/nand.h b/include/SDK/nand.h index c20ee68..463ef89 100644 --- a/include/SDK/nand.h +++ b/include/SDK/nand.h @@ -5,7 +5,8 @@ extern "C" {
#endif
-#include "SDK/NAND/NANDCore.h"
+#include <SDK/NAND/NANDCore.h>
+#include <SDK/NAND/NANDOpenClose.h>
#ifdef __cplusplus
}
diff --git a/include/code_801DCE6C.h b/include/code_801DCE6C.h index f06b185..de1243f 100644 --- a/include/code_801DCE6C.h +++ b/include/code_801DCE6C.h @@ -5,19 +5,19 @@ extern "C" {
#endif
+#include <SDK/nand.h>
#include "code_801DBE90.h"
+// array of 8 0x190 byte structs
struct gUnkClass4
{
- u8 unk0[0x2];
- char unk2[0x5];
- char unk7[0xC79];
-
+ gUnkClass6 arr[0x8];
+
gUnkClass4(void);
};
-u32 func_801DCF74(gUnkClass4*, const char*, gUnkClass5*);
-u32 func_801DCF48(gUnkClass4*, const char*);
+BOOL func_801DCF74(gUnkClass4*, const char*, gUnkClass5*);
+BOOL func_801DCF48(gUnkClass4*, const char*);
s32 func_801DD084(gUnkClass4* p1, gUnkClass5* p2, void* addr, s32 length, s32 offset);
void* func_801DD220(gUnkClass4*, gUnkClass5*, void*, u32, s32);
u32 func_801DCFE4(gUnkClass4*, gUnkClass5*);
|