mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
DiscIO: Make classes final
This commit is contained in:
parent
f8bf35e6f0
commit
301cc5ee63
13 changed files with 14 additions and 14 deletions
|
@ -30,7 +30,7 @@ struct CISOHeader
|
||||||
u8 map[CISO_MAP_SIZE];
|
u8 map[CISO_MAP_SIZE];
|
||||||
};
|
};
|
||||||
|
|
||||||
class CISOFileReader : public BlobReader
|
class CISOFileReader final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::unique_ptr<CISOFileReader> Create(File::IOFile file);
|
static std::unique_ptr<CISOFileReader> Create(File::IOFile file);
|
||||||
|
|
|
@ -40,7 +40,7 @@ struct CompressedBlobHeader // 32 bytes
|
||||||
u32 num_blocks;
|
u32 num_blocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
class CompressedBlobReader : public SectorReader
|
class CompressedBlobReader final : public SectorReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::unique_ptr<CompressedBlobReader> Create(File::IOFile file,
|
static std::unique_ptr<CompressedBlobReader> Create(File::IOFile file,
|
||||||
|
|
|
@ -244,7 +244,7 @@ private:
|
||||||
std::optional<DiscIO::Partition> m_wrapped_partition = std::nullopt;
|
std::optional<DiscIO::Partition> m_wrapped_partition = std::nullopt;
|
||||||
};
|
};
|
||||||
|
|
||||||
class DirectoryBlobReader : public BlobReader
|
class DirectoryBlobReader final : public BlobReader
|
||||||
{
|
{
|
||||||
friend DiscContent;
|
friend DiscContent;
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
namespace DiscIO
|
namespace DiscIO
|
||||||
{
|
{
|
||||||
class PlainFileReader : public BlobReader
|
class PlainFileReader final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::unique_ptr<PlainFileReader> Create(File::IOFile file);
|
static std::unique_ptr<PlainFileReader> Create(File::IOFile file);
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace DiscIO
|
||||||
class VolumeDisc;
|
class VolumeDisc;
|
||||||
struct Partition;
|
struct Partition;
|
||||||
|
|
||||||
class FileInfoGCWii : public FileInfo
|
class FileInfoGCWii final : public FileInfo
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// None of the constructors take ownership of FST pointers
|
// None of the constructors take ownership of FST pointers
|
||||||
|
@ -84,7 +84,7 @@ private:
|
||||||
u32 m_total_file_infos;
|
u32 m_total_file_infos;
|
||||||
};
|
};
|
||||||
|
|
||||||
class FileSystemGCWii : public FileSystem
|
class FileSystemGCWii final : public FileSystem
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
FileSystemGCWii(const VolumeDisc* volume, const Partition& partition);
|
FileSystemGCWii(const VolumeDisc* volume, const Partition& partition);
|
||||||
|
|
|
@ -38,7 +38,7 @@ struct NFSHeader
|
||||||
};
|
};
|
||||||
static_assert(sizeof(NFSHeader) == 0x200);
|
static_assert(sizeof(NFSHeader) == 0x200);
|
||||||
|
|
||||||
class NFSFileReader : public BlobReader
|
class NFSFileReader final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::unique_ptr<NFSFileReader> Create(File::IOFile first_file,
|
static std::unique_ptr<NFSFileReader> Create(File::IOFile first_file,
|
||||||
|
|
|
@ -45,7 +45,7 @@ public:
|
||||||
ResolveSavegameRedirectPath(std::string_view external_relative_path) = 0;
|
ResolveSavegameRedirectPath(std::string_view external_relative_path) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
class FileDataLoaderHostFS : public FileDataLoader
|
class FileDataLoaderHostFS final : public FileDataLoader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// sd_root should be an absolute path to the folder representing our virtual SD card
|
// sd_root should be an absolute path to the folder representing our virtual SD card
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace DiscIO
|
||||||
{
|
{
|
||||||
// This class wraps another BlobReader and zeroes out data that has been
|
// This class wraps another BlobReader and zeroes out data that has been
|
||||||
// identified by DiscScrubber as unused.
|
// identified by DiscScrubber as unused.
|
||||||
class ScrubbedBlob : public BlobReader
|
class ScrubbedBlob final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static std::unique_ptr<ScrubbedBlob> Create(const std::string& path);
|
static std::unique_ptr<ScrubbedBlob> Create(const std::string& path);
|
||||||
|
|
|
@ -25,7 +25,7 @@ enum class Language;
|
||||||
enum class Region;
|
enum class Region;
|
||||||
enum class Platform;
|
enum class Platform;
|
||||||
|
|
||||||
class VolumeGC : public VolumeDisc
|
class VolumeGC final : public VolumeDisc
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VolumeGC(std::unique_ptr<BlobReader> reader);
|
VolumeGC(std::unique_ptr<BlobReader> reader);
|
||||||
|
|
|
@ -23,7 +23,7 @@ enum class Language;
|
||||||
enum class Region;
|
enum class Region;
|
||||||
enum class Platform;
|
enum class Platform;
|
||||||
|
|
||||||
class VolumeWAD : public Volume
|
class VolumeWAD final : public Volume
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
VolumeWAD(std::unique_ptr<BlobReader> reader);
|
VolumeWAD(std::unique_ptr<BlobReader> reader);
|
||||||
|
|
|
@ -31,7 +31,7 @@ enum class Language;
|
||||||
enum class Region;
|
enum class Region;
|
||||||
enum class Platform;
|
enum class Platform;
|
||||||
|
|
||||||
class VolumeWii : public VolumeDisc
|
class VolumeWii final : public VolumeDisc
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
static constexpr size_t AES_KEY_SIZE = Common::AES::Context::KEY_SIZE;
|
static constexpr size_t AES_KEY_SIZE = Common::AES::Context::KEY_SIZE;
|
||||||
|
|
|
@ -41,7 +41,7 @@ constexpr u32 WIA_MAGIC = 0x01414957; // "WIA\x1" (byteswapped to little endian
|
||||||
constexpr u32 RVZ_MAGIC = 0x015A5652; // "RVZ\x1" (byteswapped to little endian)
|
constexpr u32 RVZ_MAGIC = 0x015A5652; // "RVZ\x1" (byteswapped to little endian)
|
||||||
|
|
||||||
template <bool RVZ>
|
template <bool RVZ>
|
||||||
class WIARVZFileReader : public BlobReader
|
class WIARVZFileReader final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~WIARVZFileReader();
|
~WIARVZFileReader();
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace DiscIO
|
||||||
{
|
{
|
||||||
static constexpr u32 WBFS_MAGIC = 0x53464257; // "WBFS" (byteswapped to little endian)
|
static constexpr u32 WBFS_MAGIC = 0x53464257; // "WBFS" (byteswapped to little endian)
|
||||||
|
|
||||||
class WbfsFileReader : public BlobReader
|
class WbfsFileReader final : public BlobReader
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
~WbfsFileReader();
|
~WbfsFileReader();
|
||||||
|
|
Loading…
Add table
Reference in a new issue