summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/Blob.cpp
diff options
context:
space:
mode:
authorAnthony <Helios747@users.noreply.github.com>2016-12-20 17:45:39 -0600
committerGitHub <noreply@github.com>2016-12-20 17:45:39 -0600
commitca91b6df52a51fbc963b7c409d238d1ce68e7050 (patch)
treec2e4c018c620629d3ee0bfaa9a4b53c9978b73eb /Source/Core/DiscIO/Blob.cpp
parent7620dd88d360a85d404e7fd32e1aeb0410b9cd5f (diff)
parent9bd514ed1cd02cc0b8c8f22affecaae1892da15f (diff)
Merge pull request #4521 from JosJuice/tgc
Add TGC disc image compatibility
Diffstat (limited to 'Source/Core/DiscIO/Blob.cpp')
-rw-r--r--Source/Core/DiscIO/Blob.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/Blob.cpp b/Source/Core/DiscIO/Blob.cpp
index a3d9d8deb8..d7aad9332a 100644
--- a/Source/Core/DiscIO/Blob.cpp
+++ b/Source/Core/DiscIO/Blob.cpp
@@ -17,6 +17,7 @@
#include "DiscIO/CompressedBlob.h"
#include "DiscIO/DriveBlob.h"
#include "DiscIO/FileBlob.h"
+#include "DiscIO/TGCBlob.h"
#include "DiscIO/WbfsBlob.h"
namespace DiscIO
@@ -188,6 +189,9 @@ std::unique_ptr<IBlobReader> CreateBlobReader(const std::string& filename)
if (IsCISOBlob(filename))
return CISOFileReader::Create(filename);
+ if (IsTGCBlob(filename))
+ return TGCFileReader::Create(filename);
+
// Still here? Assume plain file - since we know it exists due to the File::Exists check above.
return PlainFileReader::Create(filename);
}