2016-02-13 09:02:47 +00:00
|
|
|
#ifndef __PSHAG_CDVDFILE_HPP__
|
|
|
|
#define __PSHAG_CDVDFILE_HPP__
|
2015-08-23 06:42:29 +00:00
|
|
|
|
|
|
|
#include "RetroTypes.hpp"
|
|
|
|
|
2016-03-04 23:04:53 +00:00
|
|
|
namespace urde
|
2015-08-23 06:42:29 +00:00
|
|
|
{
|
|
|
|
|
2016-02-11 19:18:14 +00:00
|
|
|
static const char* DecodeARAMFile(const char* name)
|
|
|
|
{
|
|
|
|
return (strncmp(name, "aram:", 5) == 0 ? name + 5 : name);
|
|
|
|
}
|
2015-08-23 06:42:29 +00:00
|
|
|
|
2015-11-21 01:16:07 +00:00
|
|
|
enum class ESeekOrigin
|
2015-08-23 06:42:29 +00:00
|
|
|
{
|
2015-11-21 01:16:07 +00:00
|
|
|
Begin = 0,
|
|
|
|
Cur = 1,
|
|
|
|
End = 2
|
2015-08-23 06:42:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
struct DVDFileInfo;
|
2015-10-29 07:52:15 +00:00
|
|
|
class IDvdRequest;
|
2015-08-23 06:42:29 +00:00
|
|
|
|
|
|
|
class CDvdFile
|
|
|
|
{
|
2015-08-23 23:58:07 +00:00
|
|
|
friend class CResLoader;
|
|
|
|
std::string x18_name;
|
2015-08-23 06:42:29 +00:00
|
|
|
public:
|
2015-08-25 07:04:50 +00:00
|
|
|
CDvdFile(const char*) {}
|
|
|
|
void UpdateFilePos(int) {}
|
|
|
|
void CalcFileOffset(int, ESeekOrigin) {}
|
|
|
|
static void internalCallback(s32, DVDFileInfo*) {}
|
2015-08-31 03:44:42 +00:00
|
|
|
static bool FileExists(const char*) {return false;}
|
2015-08-25 07:04:50 +00:00
|
|
|
void CloseFile() {}
|
2015-10-29 07:52:15 +00:00
|
|
|
IDvdRequest* AsyncSeekRead(void*, u32, ESeekOrigin, int) {return nullptr;}
|
2015-08-25 07:04:50 +00:00
|
|
|
void SyncSeekRead(void*, u32, ESeekOrigin, int) {}
|
2015-10-29 07:52:15 +00:00
|
|
|
IDvdRequest* AsyncRead(void*, u32) {return nullptr;}
|
2015-08-25 07:04:50 +00:00
|
|
|
void SyncRead(void*, u32) {}
|
|
|
|
void StallForARAMFile() {}
|
|
|
|
void StartARAMFileLoad() {}
|
|
|
|
void PopARAMFileLoad() {}
|
|
|
|
void PushARAMFileLoad() {}
|
|
|
|
void TryARAMFile() {}
|
|
|
|
void PingARAMTransfer() {}
|
|
|
|
void HandleDVDInterrupt() {}
|
|
|
|
void HandleARAMInterrupt() {}
|
|
|
|
static void ARAMARAMXferCallback(u32) {}
|
|
|
|
static void DVDARAMXferCallback(s32, DVDFileInfo*) {}
|
2015-08-23 06:42:29 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2016-02-13 09:02:47 +00:00
|
|
|
#endif // __PSHAG_CDVDFILE_HPP__
|