diff options
| author | JosJuice <josjuice@gmail.com> | 2019-07-14 15:49:42 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2019-07-18 22:29:04 +0200 |
| commit | 0f5a4b37ee8e00210b211953969f10bfb48c5aaa (patch) | |
| tree | 1abe4225206f0f2d6522a6dea28213a7ec12bdcb /Source/Core/DiscIO/CompressedBlob.cpp | |
| parent | a77b571da7a31fe30f35605a90d040325cb1e595 (diff) | |
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.
Diffstat (limited to 'Source/Core/DiscIO/CompressedBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/CompressedBlob.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/CompressedBlob.cpp b/Source/Core/DiscIO/CompressedBlob.cpp index 76b7506cb2..37af397b38 100644 --- a/Source/Core/DiscIO/CompressedBlob.cpp +++ b/Source/Core/DiscIO/CompressedBlob.cpp @@ -182,10 +182,10 @@ bool CompressFileToBlob(const std::string& infile_path, const std::string& outfi } DiscScrubber disc_scrubber; - std::unique_ptr<Volume> volume; + std::unique_ptr<VolumeDisc> volume; if (sub_type == 1) { - volume = CreateVolumeFromFilename(infile_path); + volume = CreateDisc(infile_path); if (!volume || !disc_scrubber.SetupScrub(volume.get(), block_size)) { PanicAlertT("\"%s\" failed to be scrubbed. Probably the image is corrupt.", |
