Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
Loading...
Searching...
No Matches
JKRDvdFile.h
Go to the documentation of this file.
1#ifndef JKRDVDFILE_H
2#define JKRDVDFILE_H
3
5#include "dolphin/dvd.h"
8
9struct OSThread;
10
11class JKRADCommand;
12class JKRAramBlock;
14
19class JKRDvdFile : public JKRFile {
20public:
21 JKRDvdFile();
22 JKRDvdFile(const char*);
24 virtual ~JKRDvdFile();
25
26 void initiate(void);
27 s32 sync(void);
28
32
33public:
34 /* vt[03] */ virtual bool open(const char*); /* override */
35 /* vt[04] */ virtual void close(void); /* override */
36 /* vt[05] */ virtual s32 readData(void*, s32, s32); /* override */
37 /* vt[06] */ virtual s32 writeData(const void*, s32, s32); /* override */
38 /* vt[07] */ virtual s32 getFileSize(void) const; /* override */
39 /* vt[08] */ virtual bool open(s32);
40
41// private:
42 /* 0x00 */ // vtable
43 /* 0x04 */ // JKRFile
44 /* 0x1C */ OSMutex mMutex1;
45 /* 0x34 */ OSMutex mMutex2;
46 /* 0x4C */ JKRAramBlock* mBlock;
47 /* 0x50 */ OSThread* field_0x50;
49 /* 0x58 */ u32 field_0x58;
51 /* 0x98 */ JKRDvdFile* mDvdFile;
53 /* 0xBC */ OSMessage mMessage1;
55 /* 0xE0 */ OSMessage mMessage2;
57 /* 0xF4 */ OSThread* mOSThread;
58
59public:
60 static void doneProcess(s32, DVDFileInfo*);
61
63
64private:
66};
67
68#endif /* JKRDVDFILE_H */
void * OSMessage
Definition OSMessage.h:10
Definition JKRDvdAramRipper.h:13
Definition JKRAramBlock.h:12
Definition JKRDvdFile.h:19
u32 getFileID() const
Definition JKRDvdFile.h:29
OSMessageQueue mMessageQueue1
Definition JKRDvdFile.h:52
virtual ~JKRDvdFile()
Definition JKRDvdFile.cpp:38
OSThread * field_0x50
Definition JKRDvdFile.h:47
static JSUList< JKRDvdFile > & getDvdList()
Definition JKRDvdFile.h:62
virtual void close(void)
Definition JKRDvdFile.cpp:79
JKRDvdFile * mDvdFile
Definition JKRDvdFile.h:51
OSMessage mMessage1
Definition JKRDvdFile.h:53
JSULink< JKRDvdFile > mDvdLink
Definition JKRDvdFile.h:56
virtual s32 readData(void *, s32, s32)
Definition JKRDvdFile.cpp:92
s32 sync(void)
Definition JKRDvdFile.cpp:130
OSThread * mOSThread
Definition JKRDvdFile.h:57
OSMutex mMutex2
Definition JKRDvdFile.h:45
virtual bool open(const char *)
Definition JKRDvdFile.cpp:55
DVDFileInfo * getFileInfo()
Definition JKRDvdFile.h:30
void initiate(void)
Definition JKRDvdFile.cpp:43
OSMutex mMutex1
Definition JKRDvdFile.h:44
virtual s32 writeData(const void *, s32, s32)
Definition JKRDvdFile.cpp:122
static JSUList< JKRDvdFile > sDvdList
Definition JKRDvdFile.h:65
JSUFileInputStream * mFileStream
Definition JKRDvdFile.h:48
OSMessageQueue mMessageQueue2
Definition JKRDvdFile.h:54
virtual s32 getFileSize(void) const
Definition JKRDvdFile.cpp:147
JKRDvdFile()
Definition JKRDvdFile.cpp:9
DVDFileInfo mFileInfo
Definition JKRDvdFile.h:50
int getStatus()
Definition JKRDvdFile.h:31
static void doneProcess(s32, DVDFileInfo *)
Definition JKRDvdFile.cpp:140
u32 field_0x58
Definition JKRDvdFile.h:49
OSMessage mMessage2
Definition JKRDvdFile.h:55
JKRAramBlock * mBlock
Definition JKRDvdFile.h:46
Definition JKRFile.h:10
Definition JSUFileStream.h:12
Definition JSUList.h:96
s32 DVDGetCommandBlockStatus(const DVDCommandBlock *block)
Definition dvd.c:1121
Definition dvd.h:75
u32 start_address
Definition dvd.h:77
DVDCommandBlock block
Definition dvd.h:76
Definition OSMessage.h:12
Definition OSMutex.h:10
Definition OSThread.h:56
unsigned long u32
Definition types.h:10
signed long s32
Definition types.h:6