summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/TGCBlob.cpp
diff options
context:
space:
mode:
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);