2013-04-17 23:09:55 -04: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 13:54:46 -05: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
|
|
|
|
{
|
2014-02-16 23:51:41 -05:00
|
|
|
class CVolumeGC : public IVolume
|
2008-12-08 04:46:09 +00:00
|
|
|
{
|
|
|
|
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 02:39:14 -04:00
|
|
|
std::string GetRevisionSpecificUniqueID() const;
|
2008-12-08 04:46:09 +00:00
|
|
|
std::string GetMakerID() const;
|
2013-04-16 22:29:01 -05:00
|
|
|
int GetRevision() const;
|
2013-03-02 19:46:55 -06: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 12:58:56 -05:00
|
|
|
u64 GetRawSize() const;
|
2013-01-25 21:28:04 -05:00
|
|
|
bool IsDiscTwo() const;
|
2013-10-29 01:23:17 -04:00
|
|
|
|
2013-03-03 16:51:26 -06:00
|
|
|
typedef std::string(*StringDecoder)(const std::string&);
|
2013-10-29 01:23:17 -04:00
|
|
|
|
2013-03-03 16:51:26 -06:00
|
|
|
static StringDecoder GetStringDecoder(ECountry country);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
IBlobReader* m_pReader;
|
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace
|