summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/VolumeCreator.cpp
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2015-01-17 13:21:02 +0100
committerJosJuice <josjuice@gmail.com>2015-01-17 13:21:02 +0100
commitace060748b572063b33acee13c19000783a6cdde (patch)
tree0569a779c5d7fec8f954e09ef732b1972f4021a5 /Source/Core/DiscIO/VolumeCreator.cpp
parent11a36ca8e28b233f34f5c48be19fabeea92f6d38 (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/VolumeCreator.cpp')
-rw-r--r--Source/Core/DiscIO/VolumeCreator.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/Source/Core/DiscIO/VolumeCreator.cpp b/Source/Core/DiscIO/VolumeCreator.cpp
index 73feb93780..4b6053027c 100644
--- a/Source/Core/DiscIO/VolumeCreator.cpp
+++ b/Source/Core/DiscIO/VolumeCreator.cpp
@@ -120,15 +120,6 @@ IVolume* CreateVolumeFromDirectory(const std::string& _rDirectory, bool _bIsWii,
return nullptr;
}
-bool IsVolumeWiiDisc(const IVolume *_rVolume)
-{
- u32 MagicWord = 0;
- _rVolume->Read(0x18, 4, (u8*)&MagicWord, false);
-
- return (Common::swap32(MagicWord) == 0x5D1C9EA3);
- //GameCube 0xc2339f3d
-}
-
bool IsVolumeWadFile(const IVolume *_rVolume)
{
u32 MagicWord = 0;