diff options
| author | flacs <tilkax@gmail.com> | 2015-09-29 03:46:29 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-09-29 03:46:29 +0200 |
| commit | aaa48e19fea02597c8057fbd2bf309890d64f27d (patch) | |
| tree | a111d53ca97d0703b93f84bb83c52ffd729d11b3 /Source/Core/DiscIO/VolumeDirectory.cpp | |
| parent | 4c1922ae5a1fbe47b358a6d68170f4fe3d00e96c (diff) | |
| parent | 21cb13828c768471d6553e10063eccbd61e704ed (diff) | |
Merge pull request #3097 from JosJuice/blob-type
Fix blob type detection for game right-click menu
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 fd3e3d8236..75204593ea 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 |
