summaryrefslogtreecommitdiff
path: root/include/SDK/DVD/dvd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/SDK/DVD/dvd.h')
-rw-r--r--include/SDK/DVD/dvd.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/include/SDK/DVD/dvd.h b/include/SDK/DVD/dvd.h
new file mode 100644
index 0000000..e9517dc
--- /dev/null
+++ b/include/SDK/DVD/dvd.h
@@ -0,0 +1,33 @@
+#ifndef POKEREVO_DVD_DVD_H
+#define POKEREVO_DVD_DVD_H
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct DVDDiskID
+{
+ char gameCode[4];
+ char makerCode[2];
+ u8 unk6;
+ u8 unk7;
+} DVDDiskID;
+
+typedef struct DVDCommandBlock
+{
+ u8 unk0[0x30];
+} DVDCommandBlock;
+
+typedef void (*DVDCBCallback)(s32 result, DVDCommandBlock* block);
+
+DVDDiskID* DVDGetCurrentDiskID(void);
+void DVDInit(void);
+s32 DVDGetDriveStatus(void);
+BOOL DVDCheckDiskAsync(DVDCommandBlock* block, DVDCBCallback callback);
+
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif //POKEREVO_DVD_DVD_H