diff options
| author | JosJuice <josjuice@gmail.com> | 2015-09-27 14:01:12 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-09-27 20:54:31 +0200 |
| commit | be7e0554d21735d86def6fe23cb7a1411fc13d00 (patch) | |
| tree | e98f0175df2d962d1d0bf71086cd6e93de2c6086 /Source/Core/DiscIO/VolumeDirectory.cpp | |
| parent | 34c020352fde5f23969340d31b9ff71b03bf5bb6 (diff) | |
DiscIO: Add a way to get blob type
Diffstat (limited to 'Source/Core/DiscIO/VolumeDirectory.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeDirectory.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/VolumeDirectory.cpp b/Source/Core/DiscIO/VolumeDirectory.cpp index 0be9f83953..87907ccd2d 100644 --- a/Source/Core/DiscIO/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/VolumeDirectory.cpp @@ -16,6 +16,7 @@ #include "Common/FileUtil.h" #include "Common/MathUtil.h" #include "Common/Logging/Log.h" +#include "DiscIO/Blob.h" #include "DiscIO/FileBlob.h" #include "DiscIO/FileMonitor.h" #include "DiscIO/Volume.h" @@ -227,9 +228,12 @@ IVolume::EPlatform CVolumeDirectory::GetVolumeType() const return m_is_wii ? WII_DISC : GAMECUBE_DISC; } -bool CVolumeDirectory::IsCompressed() const +BlobType CVolumeDirectory::GetBlobType() const { - return false; + // VolumeDirectory isn't actually a blob, but it sort of acts + // like one, so it makes sense that it has its own blob type. + // It should be made into a proper blob in the future. + return BlobType::DIRECTORY; } u64 CVolumeDirectory::GetSize() const |
