summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-11-10 16:15:55 +0100
committerTillmann Karras <tilkax@gmail.com>2015-11-10 17:03:08 +0100
commitdf7939844502280cd2a3f666eb58226aa2e16be0 (patch)
tree32eb5f44e3e5e32610d66088e8aedaa14bcc8fa5 /Source/Core
parentd6b2fcaa71121ff6171a456ab90bd4461594ee1e (diff)
DiscIO: drop unused stuff
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/DiscIO/Blob.h1
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.cpp6
-rw-r--r--Source/Core/DiscIO/FileSystemGCWii.h1
-rw-r--r--Source/Core/DiscIO/Filesystem.h2
-rw-r--r--Source/Core/DiscIO/VolumeCreator.cpp8
-rw-r--r--Source/Core/DiscIO/VolumeCreator.h1
-rw-r--r--Source/Core/DiscIO/WiiWad.cpp26
-rw-r--r--Source/Core/DiscIO/WiiWad.h2
8 files changed, 0 insertions, 47 deletions
diff --git a/Source/Core/DiscIO/Blob.h b/Source/Core/DiscIO/Blob.h
index 4e8fc5b353..a29d4b1d2d 100644
--- a/Source/Core/DiscIO/Blob.h
+++ b/Source/Core/DiscIO/Blob.h
@@ -72,7 +72,6 @@ private:
int m_blocksize;
u8* m_cache[CACHE_SIZE];
u64 m_cache_tags[CACHE_SIZE];
- int m_cache_age[CACHE_SIZE];
};
// Factory function - examines the path to choose the right type of IBlobReader, and returns one.
diff --git a/Source/Core/DiscIO/FileSystemGCWii.cpp b/Source/Core/DiscIO/FileSystemGCWii.cpp
index e20d633f35..b03edceb54 100644
--- a/Source/Core/DiscIO/FileSystemGCWii.cpp
+++ b/Source/Core/DiscIO/FileSystemGCWii.cpp
@@ -178,12 +178,6 @@ u32 CFileSystemGCWii::GetBootDOLSize(u64 dol_offset) const
return dol_size;
}
-bool CFileSystemGCWii::GetBootDOL(u8* &buffer, u32 DolSize) const
-{
- u32 DolOffset = m_rVolume->Read32(0x420, m_Wii) << GetOffsetShift();
- return m_rVolume->Read(DolOffset, DolSize, buffer, m_Wii);
-}
-
bool CFileSystemGCWii::ExportDOL(const std::string& _rExportFolder) const
{
u32 DolOffset = m_rVolume->Read32(0x420, m_Wii) << GetOffsetShift();
diff --git a/Source/Core/DiscIO/FileSystemGCWii.h b/Source/Core/DiscIO/FileSystemGCWii.h
index 25fe0c7d8e..3b70e63437 100644
--- a/Source/Core/DiscIO/FileSystemGCWii.h
+++ b/Source/Core/DiscIO/FileSystemGCWii.h
@@ -30,7 +30,6 @@ public:
bool ExportFile(const std::string& _rFullPath, const std::string&_rExportFilename) override;
bool ExportApploader(const std::string& _rExportFolder) const override;
bool ExportDOL(const std::string& _rExportFolder) const override;
- bool GetBootDOL(u8* &buffer, u32 DolSize) const override;
u32 GetBootDOLSize() const override;
u32 GetBootDOLSize(u64 dol_offset) const override;
diff --git a/Source/Core/DiscIO/Filesystem.h b/Source/Core/DiscIO/Filesystem.h
index 134a64bc7a..10023ef823 100644
--- a/Source/Core/DiscIO/Filesystem.h
+++ b/Source/Core/DiscIO/Filesystem.h
@@ -50,11 +50,9 @@ public:
virtual bool ExportApploader(const std::string& _rExportFolder) const = 0;
virtual bool ExportDOL(const std::string& _rExportFolder) const = 0;
virtual const std::string GetFileName(u64 _Address) = 0;
- virtual bool GetBootDOL(u8* &buffer, u32 DolSize) const = 0;
virtual u32 GetBootDOLSize() const = 0;
virtual u32 GetBootDOLSize(u64 dol_offset) const = 0;
- virtual const IVolume *GetVolume() const { return m_rVolume; }
protected:
const IVolume *m_rVolume;
};
diff --git a/Source/Core/DiscIO/VolumeCreator.cpp b/Source/Core/DiscIO/VolumeCreator.cpp
index 66ee188d9c..6c918cea34 100644
--- a/Source/Core/DiscIO/VolumeCreator.cpp
+++ b/Source/Core/DiscIO/VolumeCreator.cpp
@@ -112,14 +112,6 @@ IVolume* CreateVolumeFromDirectory(const std::string& _rDirectory, bool _bIsWii,
return nullptr;
}
-bool IsVolumeWadFile(const IVolume *_rVolume)
-{
- u32 MagicWord = 0;
- _rVolume->Read(0x02, 4, (u8*)&MagicWord, false);
-
- return (Common::swap32(MagicWord) == 0x00204973 || Common::swap32(MagicWord) == 0x00206962);
-}
-
void VolumeKeyForPartition(IBlobReader& _rReader, u64 offset, u8* VolumeKey)
{
CBlobBigEndianReader Reader(_rReader);
diff --git a/Source/Core/DiscIO/VolumeCreator.h b/Source/Core/DiscIO/VolumeCreator.h
index c3173a5172..91b20a8fa4 100644
--- a/Source/Core/DiscIO/VolumeCreator.h
+++ b/Source/Core/DiscIO/VolumeCreator.h
@@ -16,7 +16,6 @@ class IBlobReader;
IVolume* CreateVolumeFromFilename(const std::string& _rFilename, u32 _PartitionGroup = 0, u32 _VolumeNum = -1);
IVolume* CreateVolumeFromDirectory(const std::string& _rDirectory, bool _bIsWii, const std::string& _rApploader = "", const std::string& _rDOL = "");
-bool IsVolumeWadFile(const IVolume *_rVolume);
void VolumeKeyForPartition(IBlobReader& _rReader, u64 offset, u8* VolumeKey);
} // namespace
diff --git a/Source/Core/DiscIO/WiiWad.cpp b/Source/Core/DiscIO/WiiWad.cpp
index a7ba92b2fb..d3d145faff 100644
--- a/Source/Core/DiscIO/WiiWad.cpp
+++ b/Source/Core/DiscIO/WiiWad.cpp
@@ -115,31 +115,5 @@ bool WiiWAD::ParseWAD(DiscIO::IBlobReader& _rReader)
return true;
}
-bool WiiWAD::IsWiiWAD(const std::string& name)
-{
- std::unique_ptr<IBlobReader> blob_reader(DiscIO::CreateBlobReader(name));
- if (blob_reader == nullptr)
- return false;
-
- CBlobBigEndianReader big_endian_reader(*blob_reader);
- bool result = false;
-
- // check for Wii wad
- if (big_endian_reader.Read32(0x00) == 0x20)
- {
- u32 wad_type = big_endian_reader.Read32(0x04);
- switch (wad_type)
- {
- case 0x49730000:
- case 0x69620000:
- result = true;
- }
- }
-
- return result;
-}
-
-
-
} // namespace end
diff --git a/Source/Core/DiscIO/WiiWad.h b/Source/Core/DiscIO/WiiWad.h
index 805cc793df..331cd2e3b8 100644
--- a/Source/Core/DiscIO/WiiWad.h
+++ b/Source/Core/DiscIO/WiiWad.h
@@ -34,8 +34,6 @@ public:
u8* GetDataApp() const { return m_pDataApp; }
u8* GetFooter() const { return m_pFooter; }
- static bool IsWiiWAD(const std::string& _rName);
-
private:
bool m_Valid;