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
|
|
|
|
2014-02-10 18:54:46 +00:00
|
|
|
#pragma once
|
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;
|
2013-09-23 06:39:14 +00:00
|
|
|
std::string GetRevisionSpecificUniqueID() const;
|
2008-12-08 04:46:09 +00:00
|
|
|
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-10-29 05:23:17 +00:00
|
|
|
|
2013-03-03 22:51:26 +00:00
|
|
|
typedef std::string(*StringDecoder)(const std::string&);
|
2013-10-29 05:23:17 +00:00
|
|
|
|
2013-03-03 22:51:26 +00:00
|
|
|
static StringDecoder GetStringDecoder(ECountry country);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
IBlobReader* m_pReader;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|