Add ciso support.

Thanks to dolphin.user839 for the patch ;)
Fixes issue 2708.


git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6685 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
NeoBrainX
2010-12-29 14:42:20 +00:00
parent 07d947c834
commit 642c7a437c
8 changed files with 186 additions and 2 deletions

View File

@ -21,6 +21,7 @@
#include "Blob.h"
#include "CompressedBlob.h"
#include "FileBlob.h"
#include "CISOBlob.h"
#include "DriveBlob.h"
namespace DiscIO
@ -130,6 +131,9 @@ IBlobReader* CreateBlobReader(const char* filename)
if (IsCompressedBlob(filename))
return CompressedBlobReader::Create(filename);
if (IsCISOBlob(filename))
return CISOFileReader::Create(filename);
// Still here? Assume plain file - since we know it exists due to the File::Exists check above.
return PlainFileReader::Create(filename);
}