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