summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2025-04-19 09:05:22 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2025-04-19 09:05:22 +0200
commit301cc5ee6330c6ced01c0db673b18b2abb9b379a (patch)
tree5a5256849d54a25c102d1ce857a8dea9029fdab2 /Source/Core/DiscIO
parentf8bf35e6f01e0165e2877031bf19cd17e71e61e2 (diff)
DiscIO: Make classes final
Diffstat (limited to 'Source/Core/DiscIO')
-rw-r--r--Source/Core/DiscIO/CISOBlob.h2
-rw-r--r--Source/Core/DiscIO/CompressedBlob.h2
-rw-r--r--Source/Core/DiscIO/DirectoryBlob.h2
-rw-r--r--Source/Core/DiscIO/FileBlob.h2
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.h4
-rw-r--r--Source/Core/DiscIO/NFSBlob.h2
-rw-r--r--Source/Core/DiscIO/RiivolutionPatcher.h2
-rw-r--r--Source/Core/DiscIO/ScrubbedBlob.h2
-rw-r--r--Source/Core/DiscIO/VolumeGC.h2
-rw-r--r--Source/Core/DiscIO/VolumeWad.h2
-rw-r--r--Source/Core/DiscIO/VolumeWii.h2
-rw-r--r--Source/Core/DiscIO/WIABlob.h2
-rw-r--r--Source/Core/DiscIO/WbfsBlob.h2
13 files changed, 14 insertions, 14 deletions
diff --git a/Source/Core/DiscIO/CISOBlob.h b/Source/Core/DiscIO/CISOBlob.h
index a3cd2ead82..e776520307 100644
--- a/Source/Core/DiscIO/CISOBlob.h
+++ b/Source/Core/DiscIO/CISOBlob.h
@@ -30,7 +30,7 @@ struct CISOHeader
u8 map[CISO_MAP_SIZE];
};
-class CISOFileReader : public BlobReader
+class CISOFileReader final : public BlobReader
{
public:
static std::unique_ptr<CISOFileReader> Create(File::IOFile file);
diff --git a/Source/Core/DiscIO/CompressedBlob.h b/Source/Core/DiscIO/CompressedBlob.h
index c7c892cd13..7eb29c3b35 100644
--- a/Source/Core/DiscIO/CompressedBlob.h
+++ b/Source/Core/DiscIO/CompressedBlob.h
@@ -40,7 +40,7 @@ struct CompressedBlobHeader // 32 bytes
u32 num_blocks;
};
-class CompressedBlobReader : public SectorReader
+class CompressedBlobReader final : public SectorReader
{
public:
static std::unique_ptr<CompressedBlobReader> Create(File::IOFile file,
diff --git a/Source/Core/DiscIO/DirectoryBlob.h b/Source/Core/DiscIO/DirectoryBlob.h
index e409d2de84..99283185aa 100644
--- a/Source/Core/DiscIO/DirectoryBlob.h
+++ b/Source/Core/DiscIO/DirectoryBlob.h
@@ -244,7 +244,7 @@ private:
std::optional<DiscIO::Partition> m_wrapped_partition = std::nullopt;
};
-class DirectoryBlobReader : public BlobReader
+class DirectoryBlobReader final : public BlobReader
{
friend DiscContent;
diff --git a/Source/Core/DiscIO/FileBlob.h b/Source/Core/DiscIO/FileBlob.h
index 66514e8a4b..46224d9c3f 100644
--- a/Source/Core/DiscIO/FileBlob.h
+++ b/Source/Core/DiscIO/FileBlob.h
@@ -13,7 +13,7 @@
namespace DiscIO
{
-class PlainFileReader : public BlobReader
+class PlainFileReader final : public BlobReader
{
public:
static std::unique_ptr<PlainFileReader> Create(File::IOFile file);
diff --git a/Source/Core/DiscIO/FileSystemGCWii.h b/Source/Core/DiscIO/FileSystemGCWii.h
index 66659e1815..b25f2e295e 100644
--- a/Source/Core/DiscIO/FileSystemGCWii.h
+++ b/Source/Core/DiscIO/FileSystemGCWii.h
@@ -19,7 +19,7 @@ namespace DiscIO
class VolumeDisc;
struct Partition;
-class FileInfoGCWii : public FileInfo
+class FileInfoGCWii final : public FileInfo
{
public:
// None of the constructors take ownership of FST pointers
@@ -84,7 +84,7 @@ private:
u32 m_total_file_infos;
};
-class FileSystemGCWii : public FileSystem
+class FileSystemGCWii final : public FileSystem
{
public:
FileSystemGCWii(const VolumeDisc* volume, const Partition& partition);
diff --git a/Source/Core/DiscIO/NFSBlob.h b/Source/Core/DiscIO/NFSBlob.h
index 78f7b871cb..80f9312614 100644
--- a/Source/Core/DiscIO/NFSBlob.h
+++ b/Source/Core/DiscIO/NFSBlob.h
@@ -38,7 +38,7 @@ struct NFSHeader
};
static_assert(sizeof(NFSHeader) == 0x200);
-class NFSFileReader : public BlobReader
+class NFSFileReader final : public BlobReader
{
public:
static std::unique_ptr<NFSFileReader> Create(File::IOFile first_file,
diff --git a/Source/Core/DiscIO/RiivolutionPatcher.h b/Source/Core/DiscIO/RiivolutionPatcher.h
index 13d5086455..9ddcb765b3 100644
--- a/Source/Core/DiscIO/RiivolutionPatcher.h
+++ b/Source/Core/DiscIO/RiivolutionPatcher.h
@@ -45,7 +45,7 @@ public:
ResolveSavegameRedirectPath(std::string_view external_relative_path) = 0;
};
-class FileDataLoaderHostFS : public FileDataLoader
+class FileDataLoaderHostFS final : public FileDataLoader
{
public:
// sd_root should be an absolute path to the folder representing our virtual SD card
diff --git a/Source/Core/DiscIO/ScrubbedBlob.h b/Source/Core/DiscIO/ScrubbedBlob.h
index bd129f65b0..0af09fcebb 100644
--- a/Source/Core/DiscIO/ScrubbedBlob.h
+++ b/Source/Core/DiscIO/ScrubbedBlob.h
@@ -13,7 +13,7 @@ namespace DiscIO
{
// This class wraps another BlobReader and zeroes out data that has been
// identified by DiscScrubber as unused.
-class ScrubbedBlob : public BlobReader
+class ScrubbedBlob final : public BlobReader
{
public:
static std::unique_ptr<ScrubbedBlob> Create(const std::string& path);
diff --git a/Source/Core/DiscIO/VolumeGC.h b/Source/Core/DiscIO/VolumeGC.h
index a87ccd44d8..b24dbe5ad0 100644
--- a/Source/Core/DiscIO/VolumeGC.h
+++ b/Source/Core/DiscIO/VolumeGC.h
@@ -25,7 +25,7 @@ enum class Language;
enum class Region;
enum class Platform;
-class VolumeGC : public VolumeDisc
+class VolumeGC final : public VolumeDisc
{
public:
VolumeGC(std::unique_ptr<BlobReader> reader);
diff --git a/Source/Core/DiscIO/VolumeWad.h b/Source/Core/DiscIO/VolumeWad.h
index 91e8c5aba0..a5d843eed4 100644
--- a/Source/Core/DiscIO/VolumeWad.h
+++ b/Source/Core/DiscIO/VolumeWad.h
@@ -23,7 +23,7 @@ enum class Language;
enum class Region;
enum class Platform;
-class VolumeWAD : public Volume
+class VolumeWAD final : public Volume
{
public:
VolumeWAD(std::unique_ptr<BlobReader> reader);
diff --git a/Source/Core/DiscIO/VolumeWii.h b/Source/Core/DiscIO/VolumeWii.h
index b1ed4b9789..c8dd6aedfa 100644
--- a/Source/Core/DiscIO/VolumeWii.h
+++ b/Source/Core/DiscIO/VolumeWii.h
@@ -31,7 +31,7 @@ enum class Language;
enum class Region;
enum class Platform;
-class VolumeWii : public VolumeDisc
+class VolumeWii final : public VolumeDisc
{
public:
static constexpr size_t AES_KEY_SIZE = Common::AES::Context::KEY_SIZE;
diff --git a/Source/Core/DiscIO/WIABlob.h b/Source/Core/DiscIO/WIABlob.h
index 106cf560d9..dcdf38af97 100644
--- a/Source/Core/DiscIO/WIABlob.h
+++ b/Source/Core/DiscIO/WIABlob.h
@@ -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)
template <bool RVZ>
-class WIARVZFileReader : public BlobReader
+class WIARVZFileReader final : public BlobReader
{
public:
~WIARVZFileReader();
diff --git a/Source/Core/DiscIO/WbfsBlob.h b/Source/Core/DiscIO/WbfsBlob.h
index 52af3f9e06..aa4e07b1a8 100644
--- a/Source/Core/DiscIO/WbfsBlob.h
+++ b/Source/Core/DiscIO/WbfsBlob.h
@@ -15,7 +15,7 @@ namespace DiscIO
{
static constexpr u32 WBFS_MAGIC = 0x53464257; // "WBFS" (byteswapped to little endian)
-class WbfsFileReader : public BlobReader
+class WbfsFileReader final : public BlobReader
{
public:
~WbfsFileReader();