2013-04-18 03:09:55 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2009-08-31 22:42:10 +00:00
|
|
|
#ifndef _VOLUME_GC
|
|
|
|
#define _VOLUME_GC
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
#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;
|
2009-02-22 13:59:06 +00:00
|
|
|
bool RAWRead(u64 _Offset, u64 _Length, u8* _pBuffer) const;
|
2008-12-08 04:46:09 +00:00
|
|
|
std::string GetUniqueID() const;
|
|
|
|
std::string GetMakerID() const;
|
2013-04-17 03:29:01 +00:00
|
|
|
int GetRevision() const;
|
2013-03-03 01:46:55 +00:00
|
|
|
std::vector<std::string> GetNames() const;
|
2008-12-08 04:46:09 +00:00
|
|
|
u32 GetFSTSize() const;
|
|
|
|
std::string GetApploaderDate() const;
|
|
|
|
ECountry GetCountry() const;
|
|
|
|
u64 GetSize() const;
|
2013-04-09 17:58:56 +00:00
|
|
|
u64 GetRawSize() const;
|
2013-01-26 02:28:04 +00:00
|
|
|
bool IsDiscTwo() const;
|
2013-03-03 22:51:26 +00:00
|
|
|
|
|
|
|
typedef std::string(*StringDecoder)(const std::string&);
|
|
|
|
|
|
|
|
static StringDecoder GetStringDecoder(ECountry country);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
IBlobReader* m_pReader;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|
2009-08-31 22:42:10 +00:00
|
|
|
|
2009-11-15 22:26:39 +00:00
|
|
|
#endif
|