mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
DiscIO: Add support for CleanRip-style split ISOs.
This commit is contained in:
@ -19,6 +19,7 @@
|
||||
#include "DiscIO/DirectoryBlob.h"
|
||||
#include "DiscIO/FileBlob.h"
|
||||
#include "DiscIO/NFSBlob.h"
|
||||
#include "DiscIO/SplitFileBlob.h"
|
||||
#include "DiscIO/TGCBlob.h"
|
||||
#include "DiscIO/WIABlob.h"
|
||||
#include "DiscIO/WbfsBlob.h"
|
||||
@ -53,6 +54,8 @@ std::string GetName(BlobType blob_type, bool translate)
|
||||
return translate_str("Mod");
|
||||
case BlobType::NFS:
|
||||
return "NFS";
|
||||
case BlobType::SPLIT_PLAIN:
|
||||
return translate_str("Multi-part ISO");
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
@ -245,6 +248,8 @@ std::unique_ptr<BlobReader> CreateBlobReader(const std::string& filename)
|
||||
default:
|
||||
if (auto directory_blob = DirectoryBlobReader::Create(filename))
|
||||
return std::move(directory_blob);
|
||||
if (auto split_blob = SplitPlainFileReader::Create(filename))
|
||||
return std::move(split_blob);
|
||||
|
||||
return PlainFileReader::Create(std::move(file));
|
||||
}
|
||||
|
Reference in New Issue
Block a user