mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
WiiWad: Allow using WiiWad with more than just files
This adds a WiiWad constructor that takes a BlobReader, so that the class can be used with more than just files from the host filesystem. Required for using WiiWad with WADs from update partitions.
This commit is contained in:
@ -19,6 +19,7 @@ class WiiWAD
|
||||
{
|
||||
public:
|
||||
explicit WiiWAD(const std::string& name);
|
||||
explicit WiiWAD(std::unique_ptr<BlobReader> blob_reader);
|
||||
~WiiWAD();
|
||||
|
||||
bool IsValid() const { return m_valid; }
|
||||
@ -32,7 +33,7 @@ public:
|
||||
private:
|
||||
bool ParseWAD();
|
||||
|
||||
bool m_valid;
|
||||
bool m_valid = false;
|
||||
|
||||
std::unique_ptr<BlobReader> m_reader;
|
||||
|
||||
|
Reference in New Issue
Block a user