Add TGC disc image compatibility

This commit is contained in:
JosJuice
2016-12-17 14:48:49 +01:00
parent 49384208cf
commit 9bd514ed1c
19 changed files with 246 additions and 18 deletions

View File

@ -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);
}