mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00: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:
parent
a77b571da7
commit
0f5a4b37ee
15 changed files with 91 additions and 54 deletions
|
@ -581,8 +581,7 @@ class DiscSystemUpdater final : public SystemUpdater
|
|||
{
|
||||
public:
|
||||
DiscSystemUpdater(UpdateCallback update_callback, const std::string& image_path)
|
||||
: m_update_callback{std::move(update_callback)}, m_volume{DiscIO::CreateVolumeFromFilename(
|
||||
image_path)}
|
||||
: m_update_callback{std::move(update_callback)}, m_volume{DiscIO::CreateDisc(image_path)}
|
||||
{
|
||||
}
|
||||
UpdateResult DoDiscUpdate();
|
||||
|
@ -621,7 +620,7 @@ private:
|
|||
std::string_view path);
|
||||
|
||||
UpdateCallback m_update_callback;
|
||||
std::unique_ptr<DiscIO::Volume> m_volume;
|
||||
std::unique_ptr<DiscIO::VolumeDisc> m_volume;
|
||||
DiscIO::Partition m_partition;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue