2015-05-24 04:55:12 +00:00
|
|
|
// Copyright 2008 Dolphin Emulator Project
|
2021-07-05 01:22:19 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
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
|
|
|
|
2020-01-23 15:47:49 +00:00
|
|
|
#include <array>
|
2017-06-08 14:07:01 +00:00
|
|
|
#include <cstddef>
|
2021-09-22 02:51:16 +00:00
|
|
|
#include <functional>
|
2017-06-10 15:51:22 +00:00
|
|
|
#include <map>
|
2014-08-26 03:40:05 +00:00
|
|
|
#include <memory>
|
2017-06-04 08:33:14 +00:00
|
|
|
#include <optional>
|
2017-06-08 14:07:01 +00:00
|
|
|
#include <set>
|
2013-10-18 07:32:56 +00:00
|
|
|
#include <string>
|
2017-06-08 14:37:51 +00:00
|
|
|
#include <variant>
|
2014-02-21 00:47:53 +00:00
|
|
|
#include <vector>
|
2013-10-18 07:32:56 +00:00
|
|
|
|
2014-02-21 00:47:53 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2017-06-07 18:32:09 +00:00
|
|
|
#include "Common/FileUtil.h"
|
|
|
|
#include "DiscIO/Blob.h"
|
2021-09-22 00:57:31 +00:00
|
|
|
#include "DiscIO/Volume.h"
|
2020-01-23 15:47:49 +00:00
|
|
|
#include "DiscIO/WiiEncryptionCache.h"
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2014-02-21 00:47:53 +00:00
|
|
|
namespace File
|
|
|
|
{
|
|
|
|
struct FSTEntry;
|
2017-06-07 18:32:09 +00:00
|
|
|
class IOFile;
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace File
|
2014-02-21 00:47:53 +00:00
|
|
|
|
2008-09-23 00:05:08 +00:00
|
|
|
namespace DiscIO
|
|
|
|
{
|
2017-06-11 11:22:13 +00:00
|
|
|
enum class PartitionType : u32;
|
|
|
|
|
2020-01-23 15:47:49 +00:00
|
|
|
class DirectoryBlobReader;
|
2021-09-22 02:18:05 +00:00
|
|
|
class VolumeDisc;
|
2020-01-23 15:47:49 +00:00
|
|
|
|
2017-06-11 12:45:42 +00:00
|
|
|
// Returns true if the path is inside a DirectoryBlob and doesn't represent the DirectoryBlob itself
|
|
|
|
bool ShouldHideFromGameList(const std::string& volume_path);
|
|
|
|
|
2021-09-21 23:37:45 +00:00
|
|
|
// Content chunk that is loaded from a file in the host file system.
|
|
|
|
struct ContentFile
|
|
|
|
{
|
|
|
|
// Path where the file can be found.
|
|
|
|
std::string m_filename;
|
|
|
|
|
|
|
|
// Offset from the start of the file where the first byte of this content chunk is.
|
|
|
|
u64 m_offset;
|
|
|
|
};
|
|
|
|
|
2021-09-22 00:51:10 +00:00
|
|
|
// Content chunk that loads data from a DirectoryBlobReader.
|
|
|
|
// Intented for representing a partition within a disc.
|
|
|
|
struct ContentPartition
|
|
|
|
{
|
|
|
|
// The reader to read data from.
|
|
|
|
DirectoryBlobReader* m_reader;
|
|
|
|
|
|
|
|
// Offset from the start of the partition for the first byte represented by this chunk.
|
|
|
|
u64 m_offset;
|
|
|
|
|
|
|
|
// The value passed as partition_data_offset to EncryptPartitionData().
|
|
|
|
u64 m_partition_data_offset;
|
|
|
|
};
|
|
|
|
|
2021-09-22 00:57:31 +00:00
|
|
|
// Content chunk that loads data from a Volume.
|
|
|
|
struct ContentVolume
|
|
|
|
{
|
|
|
|
// Offset from the start of the volume for the first byte represented by this chunk.
|
|
|
|
u64 m_offset;
|
|
|
|
|
|
|
|
// The volume to read data from.
|
|
|
|
const Volume* m_volume;
|
|
|
|
|
|
|
|
// The partition passed to the Volume's Read() method.
|
|
|
|
Partition m_partition;
|
|
|
|
};
|
|
|
|
|
2021-09-22 01:02:39 +00:00
|
|
|
// Content chunk representing a run of identical bytes.
|
|
|
|
// Useful for padding between chunks within a file.
|
|
|
|
struct ContentFixedByte
|
|
|
|
{
|
|
|
|
u8 m_byte;
|
|
|
|
};
|
|
|
|
|
2022-06-08 22:17:20 +00:00
|
|
|
// Content chunk representing an arbitrary byte sequence that's stored within the struct itself.
|
|
|
|
struct ContentByteVector
|
|
|
|
{
|
|
|
|
std::vector<u8> m_bytes;
|
|
|
|
};
|
|
|
|
|
2021-09-22 00:57:31 +00:00
|
|
|
using ContentSource = std::variant<ContentFile, // File
|
|
|
|
const u8*, // Memory
|
|
|
|
ContentPartition, // Partition
|
2021-09-22 01:02:39 +00:00
|
|
|
ContentVolume, // Volume
|
2022-06-08 22:17:20 +00:00
|
|
|
ContentFixedByte, // Fixed value padding
|
|
|
|
ContentByteVector // Byte sequence
|
2021-09-22 00:51:10 +00:00
|
|
|
>;
|
2021-09-21 05:58:41 +00:00
|
|
|
|
2021-09-22 02:18:05 +00:00
|
|
|
struct BuilderContentSource
|
|
|
|
{
|
|
|
|
u64 m_offset;
|
|
|
|
u64 m_size;
|
|
|
|
ContentSource m_source;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct FSTBuilderNode
|
|
|
|
{
|
|
|
|
std::string m_filename;
|
|
|
|
u64 m_size;
|
|
|
|
std::variant<std::vector<BuilderContentSource>, std::vector<FSTBuilderNode>> m_content;
|
2021-10-22 01:14:51 +00:00
|
|
|
void* m_user_data = nullptr;
|
2021-09-22 02:18:05 +00:00
|
|
|
|
|
|
|
bool IsFile() const
|
|
|
|
{
|
|
|
|
return std::holds_alternative<std::vector<BuilderContentSource>>(m_content);
|
|
|
|
}
|
|
|
|
|
|
|
|
std::vector<BuilderContentSource>& GetFileContent()
|
|
|
|
{
|
|
|
|
return std::get<std::vector<BuilderContentSource>>(m_content);
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::vector<BuilderContentSource>& GetFileContent() const
|
|
|
|
{
|
|
|
|
return std::get<std::vector<BuilderContentSource>>(m_content);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool IsFolder() const { return std::holds_alternative<std::vector<FSTBuilderNode>>(m_content); }
|
|
|
|
|
|
|
|
std::vector<FSTBuilderNode>& GetFolderContent()
|
|
|
|
{
|
|
|
|
return std::get<std::vector<FSTBuilderNode>>(m_content);
|
|
|
|
}
|
|
|
|
|
|
|
|
const std::vector<FSTBuilderNode>& GetFolderContent() const
|
|
|
|
{
|
|
|
|
return std::get<std::vector<FSTBuilderNode>>(m_content);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2017-06-08 14:07:01 +00:00
|
|
|
class DiscContent
|
|
|
|
{
|
|
|
|
public:
|
2021-09-21 05:58:41 +00:00
|
|
|
DiscContent(u64 offset, u64 size, ContentSource source);
|
2017-06-08 14:07:01 +00:00
|
|
|
|
|
|
|
// Provided because it's convenient when searching for DiscContent in an std::set
|
|
|
|
explicit DiscContent(u64 offset);
|
|
|
|
|
|
|
|
u64 GetOffset() const;
|
2017-08-01 17:04:33 +00:00
|
|
|
u64 GetEndOffset() const;
|
2017-06-08 14:07:01 +00:00
|
|
|
u64 GetSize() const;
|
|
|
|
bool Read(u64* offset, u64* length, u8** buffer) const;
|
|
|
|
|
2017-08-01 17:04:33 +00:00
|
|
|
bool operator==(const DiscContent& other) const { return GetEndOffset() == other.GetEndOffset(); }
|
2017-06-08 14:07:01 +00:00
|
|
|
bool operator!=(const DiscContent& other) const { return !(*this == other); }
|
2017-08-01 17:04:33 +00:00
|
|
|
bool operator<(const DiscContent& other) const { return GetEndOffset() < other.GetEndOffset(); }
|
2017-06-08 14:07:01 +00:00
|
|
|
bool operator>(const DiscContent& other) const { return other < *this; }
|
2021-09-21 06:01:21 +00:00
|
|
|
bool operator<=(const DiscContent& other) const { return !(*this > other); }
|
|
|
|
bool operator>=(const DiscContent& other) const { return !(*this < other); }
|
2018-04-12 12:18:04 +00:00
|
|
|
|
2017-06-08 14:07:01 +00:00
|
|
|
private:
|
2021-09-21 23:30:08 +00:00
|
|
|
// Position of this content chunk within its parent DiscContentContainer.
|
2017-06-08 14:07:01 +00:00
|
|
|
u64 m_offset;
|
2021-09-21 23:30:08 +00:00
|
|
|
|
|
|
|
// Number of bytes this content chunk takes up.
|
2017-06-08 14:07:01 +00:00
|
|
|
u64 m_size = 0;
|
2021-09-21 23:30:08 +00:00
|
|
|
|
|
|
|
// Where and how to find the data for this content chunk.
|
2017-06-08 14:37:51 +00:00
|
|
|
ContentSource m_content_source;
|
2017-06-08 14:07:01 +00:00
|
|
|
};
|
|
|
|
|
2017-08-01 15:45:46 +00:00
|
|
|
class DiscContentContainer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
template <typename T>
|
2021-09-21 05:40:59 +00:00
|
|
|
void AddReference(u64 offset, const std::vector<T>& vector)
|
2017-08-01 15:45:46 +00:00
|
|
|
{
|
|
|
|
return Add(offset, vector.size() * sizeof(T), reinterpret_cast<const u8*>(vector.data()));
|
|
|
|
}
|
2021-09-21 05:58:41 +00:00
|
|
|
void Add(u64 offset, u64 size, ContentSource source);
|
2017-08-01 17:13:19 +00:00
|
|
|
u64 CheckSizeAndAdd(u64 offset, const std::string& path);
|
|
|
|
u64 CheckSizeAndAdd(u64 offset, u64 max_size, const std::string& path);
|
2017-08-01 15:45:46 +00:00
|
|
|
|
|
|
|
bool Read(u64 offset, u64 length, u8* buffer) const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
std::set<DiscContent> m_contents;
|
|
|
|
};
|
|
|
|
|
2017-06-10 13:54:26 +00:00
|
|
|
class DirectoryBlobPartition
|
|
|
|
{
|
|
|
|
public:
|
2017-06-10 15:51:22 +00:00
|
|
|
DirectoryBlobPartition() = default;
|
2017-06-10 15:31:03 +00:00
|
|
|
DirectoryBlobPartition(const std::string& root_directory, std::optional<bool> is_wii);
|
2022-06-08 22:33:30 +00:00
|
|
|
DirectoryBlobPartition(
|
|
|
|
DiscIO::VolumeDisc* volume, const DiscIO::Partition& partition, std::optional<bool> is_wii,
|
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes)>& sys_callback,
|
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes, FSTBuilderNode* dol_node)>&
|
|
|
|
fst_callback);
|
2017-06-10 13:54:26 +00:00
|
|
|
|
|
|
|
// We do not allow copying, because it might mess up the pointers inside DiscContents
|
|
|
|
DirectoryBlobPartition(const DirectoryBlobPartition&) = delete;
|
|
|
|
DirectoryBlobPartition& operator=(const DirectoryBlobPartition&) = delete;
|
|
|
|
DirectoryBlobPartition(DirectoryBlobPartition&&) = default;
|
|
|
|
DirectoryBlobPartition& operator=(DirectoryBlobPartition&&) = default;
|
|
|
|
|
|
|
|
bool IsWii() const { return m_is_wii; }
|
2017-06-10 17:07:12 +00:00
|
|
|
u64 GetDataSize() const { return m_data_size; }
|
2017-06-11 11:22:13 +00:00
|
|
|
const std::string& GetRootDirectory() const { return m_root_directory; }
|
2017-07-18 19:06:35 +00:00
|
|
|
const std::vector<u8>& GetHeader() const { return m_disc_header; }
|
2017-08-01 15:45:46 +00:00
|
|
|
const DiscContentContainer& GetContents() const { return m_contents; }
|
2021-09-22 02:18:05 +00:00
|
|
|
const std::optional<DiscIO::Partition>& GetWrappedPartition() const
|
|
|
|
{
|
|
|
|
return m_wrapped_partition;
|
|
|
|
}
|
2018-04-12 12:18:04 +00:00
|
|
|
|
2020-01-23 15:47:49 +00:00
|
|
|
const std::array<u8, VolumeWii::AES_KEY_SIZE>& GetKey() const { return m_key; }
|
|
|
|
void SetKey(std::array<u8, VolumeWii::AES_KEY_SIZE> key) { m_key = key; }
|
|
|
|
|
2017-06-10 13:54:26 +00:00
|
|
|
private:
|
2021-09-22 02:18:05 +00:00
|
|
|
void SetDiscHeaderFromFile(const std::string& boot_bin_path);
|
|
|
|
void SetDiscHeader(std::vector<u8> boot_bin);
|
|
|
|
void SetDiscType(std::optional<bool> is_wii);
|
|
|
|
void SetBI2FromFile(const std::string& bi2_path);
|
|
|
|
void SetBI2(std::vector<u8> bi2);
|
2017-06-10 13:54:26 +00:00
|
|
|
|
|
|
|
// Returns DOL address
|
2021-09-22 02:18:05 +00:00
|
|
|
u64 SetApploaderFromFile(const std::string& path);
|
|
|
|
u64 SetApploader(std::vector<u8> apploader, const std::string& log_path);
|
2017-06-10 13:54:26 +00:00
|
|
|
// Returns FST address
|
2021-09-22 02:18:05 +00:00
|
|
|
u64 SetDOLFromFile(const std::string& path, u64 dol_address);
|
|
|
|
u64 SetDOL(FSTBuilderNode dol_node, u64 dol_address);
|
2017-06-10 13:54:26 +00:00
|
|
|
|
2021-09-22 02:18:05 +00:00
|
|
|
void BuildFSTFromFolder(const std::string& fst_root_path, u64 fst_address);
|
|
|
|
void BuildFST(std::vector<FSTBuilderNode> root_nodes, u64 fst_address);
|
2017-06-10 13:54:26 +00:00
|
|
|
|
|
|
|
// FST creation
|
|
|
|
void WriteEntryData(u32* entry_offset, u8 type, u32 name_offset, u64 data_offset, u64 length,
|
|
|
|
u32 address_shift);
|
|
|
|
void WriteEntryName(u32* name_offset, const std::string& name, u64 name_table_offset);
|
2021-09-22 02:18:05 +00:00
|
|
|
void WriteDirectory(std::vector<FSTBuilderNode>* parent_entries, u32* fst_offset,
|
|
|
|
u32* name_offset, u64* data_offset, u32 parent_entry_index,
|
|
|
|
u64 name_table_offset);
|
2017-06-10 13:54:26 +00:00
|
|
|
|
2017-08-01 15:45:46 +00:00
|
|
|
DiscContentContainer m_contents;
|
2017-07-18 19:06:35 +00:00
|
|
|
std::vector<u8> m_disc_header;
|
2017-07-18 13:53:04 +00:00
|
|
|
std::vector<u8> m_bi2;
|
2017-06-10 13:54:26 +00:00
|
|
|
std::vector<u8> m_apploader;
|
|
|
|
std::vector<u8> m_fst_data;
|
|
|
|
|
2021-09-04 04:43:19 +00:00
|
|
|
std::array<u8, VolumeWii::AES_KEY_SIZE> m_key{};
|
2020-01-23 15:47:49 +00:00
|
|
|
|
2017-06-10 13:54:26 +00:00
|
|
|
std::string m_root_directory;
|
2017-06-10 15:51:22 +00:00
|
|
|
bool m_is_wii = false;
|
2017-06-10 13:54:26 +00:00
|
|
|
// GameCube has no shift, Wii has 2 bit shift
|
2017-06-10 15:51:22 +00:00
|
|
|
u32 m_address_shift = 0;
|
2017-06-10 17:07:12 +00:00
|
|
|
|
2021-09-04 04:43:19 +00:00
|
|
|
u64 m_data_size = 0;
|
2021-09-22 02:18:05 +00:00
|
|
|
|
|
|
|
std::optional<DiscIO::Partition> m_wrapped_partition = std::nullopt;
|
2017-06-10 13:54:26 +00:00
|
|
|
};
|
|
|
|
|
2017-06-07 18:32:09 +00:00
|
|
|
class DirectoryBlobReader : public BlobReader
|
2008-09-23 00:05:08 +00:00
|
|
|
{
|
2020-01-23 15:47:49 +00:00
|
|
|
friend DiscContent;
|
|
|
|
|
2009-12-10 09:16:10 +00:00
|
|
|
public:
|
2017-06-09 10:45:34 +00:00
|
|
|
static std::unique_ptr<DirectoryBlobReader> Create(const std::string& dol_path);
|
2021-09-22 02:51:16 +00:00
|
|
|
static std::unique_ptr<DirectoryBlobReader> Create(
|
|
|
|
std::unique_ptr<DiscIO::VolumeDisc> volume,
|
2022-06-08 22:33:30 +00:00
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes)>& sys_callback,
|
2021-09-22 02:51:16 +00:00
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes, FSTBuilderNode* dol_node)>&
|
|
|
|
fst_callback);
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2017-06-08 14:37:51 +00:00
|
|
|
// We do not allow copying, because it might mess up the pointers inside DiscContents
|
|
|
|
DirectoryBlobReader(const DirectoryBlobReader&) = delete;
|
|
|
|
DirectoryBlobReader& operator=(const DirectoryBlobReader&) = delete;
|
|
|
|
DirectoryBlobReader(DirectoryBlobReader&&) = default;
|
|
|
|
DirectoryBlobReader& operator=(DirectoryBlobReader&&) = default;
|
|
|
|
|
2017-06-07 18:32:09 +00:00
|
|
|
bool Read(u64 offset, u64 length, u8* buffer) override;
|
2020-08-29 13:12:02 +00:00
|
|
|
bool SupportsReadWiiDecrypted(u64 offset, u64 size, u64 partition_data_offset) const override;
|
2019-12-27 21:04:51 +00:00
|
|
|
bool ReadWiiDecrypted(u64 offset, u64 size, u8* buffer, u64 partition_data_offset) override;
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2017-06-07 18:32:09 +00:00
|
|
|
BlobType GetBlobType() const override;
|
2020-06-07 12:11:00 +00:00
|
|
|
|
2017-06-07 18:32:09 +00:00
|
|
|
u64 GetRawSize() const override;
|
|
|
|
u64 GetDataSize() const override;
|
2019-03-21 21:20:23 +00:00
|
|
|
bool IsDataSizeAccurate() const override { return true; }
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2020-06-07 12:11:00 +00:00
|
|
|
u64 GetBlockSize() const override { return 0; }
|
|
|
|
bool HasFastRandomAccessInBlock() const override { return true; }
|
2020-06-21 18:41:50 +00:00
|
|
|
std::string GetCompressionMethod() const override { return {}; }
|
2022-02-24 10:51:52 +00:00
|
|
|
std::optional<int> GetCompressionLevel() const override { return std::nullopt; }
|
2020-06-07 12:11:00 +00:00
|
|
|
|
2009-12-10 09:16:10 +00:00
|
|
|
private:
|
2017-06-11 11:22:13 +00:00
|
|
|
struct PartitionWithType
|
|
|
|
{
|
|
|
|
PartitionWithType(DirectoryBlobPartition&& partition_, PartitionType type_)
|
|
|
|
: partition(std::move(partition_)), type(type_)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
DirectoryBlobPartition partition;
|
|
|
|
PartitionType type;
|
|
|
|
};
|
|
|
|
|
|
|
|
explicit DirectoryBlobReader(const std::string& game_partition_root,
|
|
|
|
const std::string& true_root);
|
2022-06-08 22:33:30 +00:00
|
|
|
explicit DirectoryBlobReader(
|
|
|
|
std::unique_ptr<DiscIO::VolumeDisc> volume,
|
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes)>& sys_callback,
|
|
|
|
const std::function<void(std::vector<FSTBuilderNode>* fst_nodes, FSTBuilderNode* dol_node)>&
|
|
|
|
fst_callback);
|
2017-06-07 18:32:09 +00:00
|
|
|
|
2020-08-29 13:12:02 +00:00
|
|
|
const DirectoryBlobPartition* GetPartition(u64 offset, u64 size, u64 partition_data_offset) const;
|
|
|
|
|
2020-01-23 15:47:49 +00:00
|
|
|
bool EncryptPartitionData(u64 offset, u64 size, u8* buffer, u64 partition_data_offset,
|
|
|
|
u64 partition_data_decrypted_size);
|
|
|
|
|
2021-09-22 02:35:27 +00:00
|
|
|
void SetNonpartitionDiscHeaderFromFile(const std::vector<u8>& partition_header,
|
|
|
|
const std::string& game_partition_root);
|
2017-06-10 18:11:58 +00:00
|
|
|
void SetNonpartitionDiscHeader(const std::vector<u8>& partition_header,
|
2021-09-22 02:35:27 +00:00
|
|
|
std::vector<u8> header_bin);
|
|
|
|
void SetWiiRegionDataFromFile(const std::string& game_partition_root);
|
|
|
|
void SetWiiRegionData(const std::vector<u8>& wii_region_data, const std::string& log_path);
|
2017-06-11 11:22:13 +00:00
|
|
|
void SetPartitions(std::vector<PartitionWithType>&& partitions);
|
2020-01-23 15:47:49 +00:00
|
|
|
void SetPartitionHeader(DirectoryBlobPartition* partition, u64 partition_address);
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2017-06-10 15:51:22 +00:00
|
|
|
// For GameCube:
|
|
|
|
DirectoryBlobPartition m_gamecube_pseudopartition;
|
|
|
|
|
|
|
|
// For Wii:
|
2017-08-01 15:45:46 +00:00
|
|
|
DiscContentContainer m_nonpartition_contents;
|
2017-06-10 15:51:22 +00:00
|
|
|
std::map<u64, DirectoryBlobPartition> m_partitions;
|
2020-01-23 15:47:49 +00:00
|
|
|
WiiEncryptionCache m_encryption_cache;
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2017-06-09 10:08:17 +00:00
|
|
|
bool m_is_wii;
|
2020-01-23 15:47:49 +00:00
|
|
|
bool m_encrypted;
|
2016-06-24 08:43:46 +00:00
|
|
|
|
2017-07-18 19:06:35 +00:00
|
|
|
std::vector<u8> m_disc_header_nonpartition;
|
2017-06-11 11:22:13 +00:00
|
|
|
std::vector<u8> m_partition_table;
|
2017-06-10 07:53:36 +00:00
|
|
|
std::vector<u8> m_wii_region_data;
|
2021-09-22 02:35:27 +00:00
|
|
|
std::vector<std::vector<u8>> m_extra_data;
|
2017-06-10 17:07:12 +00:00
|
|
|
|
|
|
|
u64 m_data_size;
|
2021-09-22 02:35:27 +00:00
|
|
|
|
|
|
|
std::unique_ptr<DiscIO::VolumeDisc> m_wrapped_volume;
|
2008-09-23 00:05:08 +00:00
|
|
|
};
|
2008-12-08 04:46:09 +00:00
|
|
|
|
2019-05-05 23:48:12 +00:00
|
|
|
} // namespace DiscIO
|