mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 22:09:19 -07:00
775dc8a9c0
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4 8ced0084-cf51-0410-be5f-012b33b47a6e
60 lines
1.4 KiB
C++
60 lines
1.4 KiB
C++
#ifndef _DATAREADER_H
|
|
#define _DATAREADER_H
|
|
|
|
// =================================================================================================
|
|
// IDataReader
|
|
// =================================================================================================
|
|
|
|
class IDataReader
|
|
{
|
|
protected:
|
|
const char *m_szName;
|
|
|
|
public:
|
|
virtual u8 Read8 (void) = NULL;
|
|
virtual u16 Read16(void) = NULL;
|
|
virtual u32 Read32(void) = NULL;
|
|
};
|
|
|
|
// =================================================================================================
|
|
// CDataReader_Fifo
|
|
// =================================================================================================
|
|
|
|
class CDataReader_Fifo : public IDataReader
|
|
{
|
|
private:
|
|
|
|
public:
|
|
CDataReader_Fifo(void);
|
|
|
|
virtual u8 Read8(void);
|
|
virtual u16 Read16(void);
|
|
virtual u32 Read32(void);
|
|
};
|
|
|
|
// =================================================================================================
|
|
// CDataReader_Memory
|
|
// =================================================================================================
|
|
|
|
class CDataReader_Memory : public IDataReader
|
|
{
|
|
private:
|
|
|
|
// u8* m_pMemory;
|
|
u32 m_uReadAddress;
|
|
|
|
public:
|
|
|
|
CDataReader_Memory(u32 _uAddress);
|
|
|
|
u32 GetReadAddress(void);
|
|
|
|
virtual u8 Read8(void);
|
|
virtual u16 Read16(void);
|
|
virtual u32 Read32(void);
|
|
};
|
|
|
|
extern IDataReader* g_pDataReader;
|
|
|
|
#endif
|