diff options
author | Max <mparisi@stevens.edu> | 2020-10-30 02:05:35 -0400 |
---|---|---|
committer | Max <mparisi@stevens.edu> | 2020-10-30 02:05:35 -0400 |
commit | d96e18f2d6f0c92639929523051d3bd2c787333b (patch) | |
tree | 56edf2e9bdc02ac0cc56f1bde9693fdbb587e698 /include/SDK/DVD/dvdfs.h | |
parent | 47a1bdea8872c79dd2cd7d75ca7f254b9ed13170 (diff) |
match up to func_801DD294
Diffstat (limited to 'include/SDK/DVD/dvdfs.h')
-rw-r--r-- | include/SDK/DVD/dvdfs.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/include/SDK/DVD/dvdfs.h b/include/SDK/DVD/dvdfs.h index 444ae92..8687730 100644 --- a/include/SDK/DVD/dvdfs.h +++ b/include/SDK/DVD/dvdfs.h @@ -5,31 +5,16 @@ 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);
+// sizeof DVDFileInfo >= 0x3C
struct DVDFileInfo
{
u8 unk0[0x34];
- size_t unk34;
+ size_t fileSz;
u8 unk38[0x4];
- gUnkClass6* unk3C; // TODO: determine type
- void (*unk40)(s32, void*);
- void* unk44;
- u32 unk48;
};
BOOL DVDOpen(const char*, DVDFileInfo*);
@@ -39,7 +24,7 @@ s32 DVDReadPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, s32 p s32 DVDReadAsyncPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, DVDCallback callback, s32 prio);
s32 DVDSeekAsyncPrio(DVDFileInfo* fileInfo, s32 offset, DVDCallback callback, s32 prio);
-
+#define DVDGetLength(info) ((info)->fileSz)
#ifdef __cplusplus
}
|