dolphin/Source/Core/DiscIO/Src/VolumeGC.h

44 lines
961 B
C
Raw Normal View History

// Copyright 2013 Dolphin Emulator Project
// Licensed under GPLv2
// Refer to the license.txt file included.
#ifndef _VOLUME_GC
#define _VOLUME_GC
#include "Volume.h"
#include "Blob.h"
// --- this volume type is used for GC disc images ---
namespace DiscIO
{
class CVolumeGC : public IVolume
{
public:
CVolumeGC(IBlobReader* _pReader);
~CVolumeGC();
bool Read(u64 _Offset, u64 _Length, u8* _pBuffer) const;
bool RAWRead(u64 _Offset, u64 _Length, u8* _pBuffer) const;
std::string GetUniqueID() const;
std::string GetMakerID() const;
int GetRevision() const;
std::vector<std::string> GetNames() const;
u32 GetFSTSize() const;
std::string GetApploaderDate() const;
ECountry GetCountry() const;
u64 GetSize() const;
u64 GetRawSize() const;
bool IsDiscTwo() const;
2013-03-03 22:51:26 +00:00
typedef std::string(*StringDecoder)(const std::string&);
static StringDecoder GetStringDecoder(ECountry country);
private:
IBlobReader* m_pReader;
};
} // namespace
#endif