diff options
| author | JosJuice <josjuice@gmail.com> | 2017-06-04 14:20:20 +0200 |
|---|---|---|
| committer | JosJuice <josjuice@gmail.com> | 2017-06-04 14:20:20 +0200 |
| commit | 2ce9281f77bb1ba2ca88cfa7152ef69480658e5a (patch) | |
| tree | 592e6d6fadea49c79ce7b0cf42663f7d73a129f4 /Source/Core/DiscIO | |
| parent | 60655258875df503bbc47262972622f1c01fc408 (diff) | |
Don't show FST size in game properties
Normal users don't care about it. In fact, people care so
little about it that the Wii implementation of it was broken
starting from when it was implemented (eb65601) to 7 years
later (e0a47c1), apparently without anyone reporting it.
Diffstat (limited to 'Source/Core/DiscIO')
| -rw-r--r-- | Source/Core/DiscIO/Volume.h | 2 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeDirectory.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeDirectory.h | 2 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.cpp | 9 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeGC.h | 1 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeWad.h | 1 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.cpp | 10 | ||||
| -rw-r--r-- | Source/Core/DiscIO/VolumeWiiCrypted.h | 1 |
8 files changed, 0 insertions, 32 deletions
diff --git a/Source/Core/DiscIO/Volume.h b/Source/Core/DiscIO/Volume.h index bd8e99e121..8b59b53618 100644 --- a/Source/Core/DiscIO/Volume.h +++ b/Source/Core/DiscIO/Volume.h @@ -75,8 +75,6 @@ public: virtual std::map<Language, std::string> GetLongMakers() const { return {}; } virtual std::map<Language, std::string> GetDescriptions() const { return {}; } virtual std::vector<u32> GetBanner(int* width, int* height) const = 0; - u64 GetFSTSize() const { return GetFSTSize(GetGamePartition()); } - virtual u64 GetFSTSize(const Partition& partition) const = 0; std::string GetApploaderDate() const { return GetApploaderDate(GetGamePartition()); } virtual std::string GetApploaderDate(const Partition& partition) const = 0; // 0 is the first disc, 1 is the second disc diff --git a/Source/Core/DiscIO/VolumeDirectory.cpp b/Source/Core/DiscIO/VolumeDirectory.cpp index 85cfc6d819..4dbedd8d00 100644 --- a/Source/Core/DiscIO/VolumeDirectory.cpp +++ b/Source/Core/DiscIO/VolumeDirectory.cpp @@ -230,12 +230,6 @@ void CVolumeDirectory::SetName(const std::string& name) m_disk_header[length + 0x20] = 0; } -u64 CVolumeDirectory::GetFSTSize(const Partition& partition) const -{ - // Not implemented - return 0; -} - std::string CVolumeDirectory::GetApploaderDate(const Partition& partition) const { // Not implemented diff --git a/Source/Core/DiscIO/VolumeDirectory.h b/Source/Core/DiscIO/VolumeDirectory.h index 83530c223c..e39dc69274 100644 --- a/Source/Core/DiscIO/VolumeDirectory.h +++ b/Source/Core/DiscIO/VolumeDirectory.h @@ -54,8 +54,6 @@ public: std::vector<u32> GetBanner(int* width, int* height) const override; void SetName(const std::string&); - u64 GetFSTSize(const Partition& partition = PARTITION_NONE) const override; - std::string GetApploaderDate(const Partition& partition = PARTITION_NONE) const override; Platform GetVolumeType() const override; diff --git a/Source/Core/DiscIO/VolumeGC.cpp b/Source/Core/DiscIO/VolumeGC.cpp index d6abd08263..92d7fc5e0a 100644 --- a/Source/Core/DiscIO/VolumeGC.cpp +++ b/Source/Core/DiscIO/VolumeGC.cpp @@ -138,15 +138,6 @@ std::vector<u32> CVolumeGC::GetBanner(int* width, int* height) const return m_image_buffer; } -u64 CVolumeGC::GetFSTSize(const Partition& partition) const -{ - u32 size; - if (!Read(0x428, 0x4, (u8*)&size, partition)) - return 0; - - return Common::swap32(size); -} - std::string CVolumeGC::GetApploaderDate(const Partition& partition) const { char date[16]; diff --git a/Source/Core/DiscIO/VolumeGC.h b/Source/Core/DiscIO/VolumeGC.h index 9ae149ed94..0b906adece 100644 --- a/Source/Core/DiscIO/VolumeGC.h +++ b/Source/Core/DiscIO/VolumeGC.h @@ -40,7 +40,6 @@ public: std::map<Language, std::string> GetLongMakers() const override; std::map<Language, std::string> GetDescriptions() const override; std::vector<u32> GetBanner(int* width, int* height) const override; - u64 GetFSTSize(const Partition& partition = PARTITION_NONE) const override; std::string GetApploaderDate(const Partition& partition = PARTITION_NONE) const override; u8 GetDiscNumber(const Partition& partition = PARTITION_NONE) const override; diff --git a/Source/Core/DiscIO/VolumeWad.h b/Source/Core/DiscIO/VolumeWad.h index 5ab2eeeaa1..66efd5daab 100644 --- a/Source/Core/DiscIO/VolumeWad.h +++ b/Source/Core/DiscIO/VolumeWad.h @@ -45,7 +45,6 @@ public: } std::map<Language, std::string> GetLongNames() const override; std::vector<u32> GetBanner(int* width, int* height) const override; - u64 GetFSTSize(const Partition& partition = PARTITION_NONE) const override { return 0; } std::string GetApploaderDate(const Partition& partition = PARTITION_NONE) const override { return ""; diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.cpp b/Source/Core/DiscIO/VolumeWiiCrypted.cpp index 9281529254..3b31d126fe 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.cpp +++ b/Source/Core/DiscIO/VolumeWiiCrypted.cpp @@ -295,16 +295,6 @@ std::vector<u32> CVolumeWiiCrypted::GetBanner(int* width, int* height) const return GetWiiBanner(width, height, *title_id); } -u64 CVolumeWiiCrypted::GetFSTSize(const Partition& partition) const -{ - u32 size; - - if (!Read(0x428, 0x4, (u8*)&size, partition)) - return 0; - - return (u64)Common::swap32(size) << 2; -} - std::string CVolumeWiiCrypted::GetApploaderDate(const Partition& partition) const { char date[16]; diff --git a/Source/Core/DiscIO/VolumeWiiCrypted.h b/Source/Core/DiscIO/VolumeWiiCrypted.h index 54fd25713c..76128202fd 100644 --- a/Source/Core/DiscIO/VolumeWiiCrypted.h +++ b/Source/Core/DiscIO/VolumeWiiCrypted.h @@ -43,7 +43,6 @@ public: std::string GetInternalName(const Partition& partition) const override; std::map<Language, std::string> GetLongNames() const override; std::vector<u32> GetBanner(int* width, int* height) const override; - u64 GetFSTSize(const Partition& partition) const override; std::string GetApploaderDate(const Partition& partition) const override; u8 GetDiscNumber(const Partition& partition) const override; |
