diff options
author | Revo <projectrevotpp@hotmail.com> | 2020-10-31 18:29:54 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-31 18:29:54 -0400 |
commit | b78fc344a7db4386fc086e96107ed9f5f6cf45ae (patch) | |
tree | c93cb32ab858dae70b15b1c4943ee8e771dadbde /include/SDK/DVD/dvdfs.h | |
parent | f13fcff4a5f496e8bc1fa4ff759698d9ac37c478 (diff) | |
parent | 9ba8186ce645c468f66eed98034db0127f3e3199 (diff) |
Merge pull request #154 from mparisi20/master
decompile code_801DCE6C.o, move gamespy, and add standard C system headers
Diffstat (limited to 'include/SDK/DVD/dvdfs.h')
-rw-r--r-- | include/SDK/DVD/dvdfs.h | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/include/SDK/DVD/dvdfs.h b/include/SDK/DVD/dvdfs.h index a5283eb..8687730 100644 --- a/include/SDK/DVD/dvdfs.h +++ b/include/SDK/DVD/dvdfs.h @@ -9,14 +9,12 @@ typedef struct DVDFileInfo DVDFileInfo; typedef void (*DVDCallback)(s32 result, DVDFileInfo* fileInfo);
+// sizeof DVDFileInfo >= 0x3C
struct DVDFileInfo
{
u8 unk0[0x34];
- size_t unk34;
- u8 unk38[0x8];
- void (*unk40)(s32, void*);
- void* unk44;
- u32 unk48;
+ size_t fileSz;
+ u8 unk38[0x4];
};
BOOL DVDOpen(const char*, DVDFileInfo*);
@@ -26,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
}
|