diff options
| author | JosJuice <josjuice@gmail.com> | 2015-01-17 13:21:02 +0100 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2015-01-17 13:21:02 +0100 |
| commit | ace060748b572063b33acee13c19000783a6cdde (patch) | |
| tree | 0569a779c5d7fec8f954e09ef732b1972f4021a5 /Source/Core/DiscIO/VolumeWad.cpp | |
| parent | 11a36ca8e28b233f34f5c48be19fabeea92f6d38 (diff) | |
Don't read from disk when checking volume type
Should be faster than relying on the OS to cache the magic words.
Also gets rid of the odd recursive call in VolumeDirectory.
Diffstat (limited to 'Source/Core/DiscIO/VolumeWad.cpp')
| -rw-r--r-- | Source/Core/DiscIO/VolumeWad.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DiscIO/VolumeWad.cpp b/Source/Core/DiscIO/VolumeWad.cpp index 014792fc75..13fecce313 100644 --- a/Source/Core/DiscIO/VolumeWad.cpp +++ b/Source/Core/DiscIO/VolumeWad.cpp @@ -103,6 +103,11 @@ bool CVolumeWAD::GetTitleID(u8* _pBuffer) const return true; } +bool CVolumeWAD::IsWadFile() const +{ + return true; +} + std::vector<std::string> CVolumeWAD::GetNames() const { std::vector<std::string> names; |
