From 1f79672cc57db6176590219ec5e34bb6e077f03c Mon Sep 17 00:00:00 2001 From: Max Date: Tue, 27 Oct 2020 14:06:50 -0400 Subject: match up to func_801DC5FC --- include/SDK/DVD/dvd.h | 1 - include/SDK/DVD/dvdfs.h | 29 +++++++++++++++++++++++++++++ include/SDK/dvd.h | 1 + 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 include/SDK/DVD/dvdfs.h (limited to 'include/SDK') diff --git a/include/SDK/DVD/dvd.h b/include/SDK/DVD/dvd.h index 7a45e89..09a6c79 100644 --- a/include/SDK/DVD/dvd.h +++ b/include/SDK/DVD/dvd.h @@ -13,7 +13,6 @@ typedef struct DVDDiskID u8 unk7; } DVDDiskID; - DVDDiskID* DVDGetCurrentDiskID(void); void DVDInit(void); diff --git a/include/SDK/DVD/dvdfs.h b/include/SDK/DVD/dvdfs.h new file mode 100644 index 0000000..8f95a94 --- /dev/null +++ b/include/SDK/DVD/dvdfs.h @@ -0,0 +1,29 @@ +#ifndef POKEREVO_DVDFS_H +#define POKEREVO_DVDFS_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct DVDFileInfo DVDFileInfo; + +typedef void (*DVDCallback)(s32 result, DVDFileInfo* fileInfo); + +struct DVDFileInfo +{ + u8 unk0[0x40]; + void (*unk40)(s32, void*); // TODO: not a DVDFileCallback bc an unkClass* is passed as 2nd param + void* unk44; //data cache start addr to invalidate + u32 unk48; // data cache region size +}; + +BOOL DVDOpen(const char*, DVDFileInfo*); +s32 DVDConvertPathToEntrynum(const char* fileName); +s32 DVDReadPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, s32 prio); +s32 DVDReadAsyncPrio(DVDFileInfo* fileInfo, void* addr, s32 length, s32 offset, DVDCallback callback, s32 prio); + +#ifdef __cplusplus +} +#endif + +#endif //POKEREVO_DVDFS_H diff --git a/include/SDK/dvd.h b/include/SDK/dvd.h index 0bab0b6..d2cc09e 100644 --- a/include/SDK/dvd.h +++ b/include/SDK/dvd.h @@ -7,6 +7,7 @@ extern "C" { #include "SDK/DVD/dvd.h" #include "SDK/DVD/dvdFatal.h" +#include "SDK/DVD/dvdfs.h" #ifdef __cplusplus } -- cgit v1.2.3