summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/TGCBlob.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2023-10-01 11:39:37 -0400
committerGitHub <noreply@github.com>2023-10-01 11:39:37 -0400
commitcd366c4f46dad509b959a05afad3847218ffe5f6 (patch)
treef8baa6b501072d3402ad9462a6c556e419b75a0b /Source/Core/DiscIO/TGCBlob.cpp
parentd55d878b178b57f1aa4b0eb6235194d44c6c6f6b (diff)
parent335cf4f2db4160ebbf387aeb19dc637182c91c5a (diff)
Merge pull request #12036 from LillyJadeKatrin/deep-copy-volume
Added CopyReader to BlobReader and all subclasses
Diffstat (limited to 'Source/Core/DiscIO/TGCBlob.cpp')
-rw-r--r--Source/Core/DiscIO/TGCBlob.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/TGCBlob.cpp b/Source/Core/DiscIO/TGCBlob.cpp
index c61d0763a4..94ad394861 100644
--- a/Source/Core/DiscIO/TGCBlob.cpp
+++ b/Source/Core/DiscIO/TGCBlob.cpp
@@ -98,6 +98,11 @@ TGCFileReader::TGCFileReader(File::IOFile file) : m_file(std::move(file))
}
}
+std::unique_ptr<BlobReader> TGCFileReader::CopyReader() const
+{
+ return Create(m_file.Duplicate("rb"));
+}
+
u64 TGCFileReader::GetDataSize() const
{
return m_size - Common::swap32(m_header.tgc_header_size);