mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
DiscIO: Add functions CreateDisc and CreateWAD
...in addition to the existing function CreateVolume (renamed from CreateVolumeFromFilename). Lets code easily add constraints such as not letting the user select a WAD file when using the disc changing functionality.
This commit is contained in:
@ -22,6 +22,7 @@ namespace DiscIO
|
||||
{
|
||||
enum class BlobType;
|
||||
class FileSystem;
|
||||
class VolumeWAD;
|
||||
|
||||
struct Partition final
|
||||
{
|
||||
@ -141,6 +142,12 @@ protected:
|
||||
static const std::vector<u8> INVALID_CERT_CHAIN;
|
||||
};
|
||||
|
||||
std::unique_ptr<Volume> CreateVolumeFromFilename(const std::string& filename);
|
||||
class VolumeDisc : public Volume
|
||||
{
|
||||
};
|
||||
|
||||
std::unique_ptr<VolumeDisc> CreateDisc(const std::string& path);
|
||||
std::unique_ptr<VolumeWAD> CreateWAD(const std::string& path);
|
||||
std::unique_ptr<Volume> CreateVolume(const std::string& path);
|
||||
|
||||
} // namespace DiscIO
|
||||
|
Reference in New Issue
Block a user