diff --git a/Source/Core/UICommon/GameFile.cpp b/Source/Core/UICommon/GameFile.cpp index 2d467e8110..470016d1bd 100644 --- a/Source/Core/UICommon/GameFile.cpp +++ b/Source/Core/UICommon/GameFile.cpp @@ -70,16 +70,6 @@ DiscIO::Language GameFile::GetConfigLanguage() const return SConfig::GetInstance().GetLanguageAdjustedForRegion(DiscIO::IsWii(m_platform), m_region); } -bool operator==(const GameBanner& lhs, const GameBanner& rhs) -{ - return std::tie(lhs.buffer, lhs.width, lhs.height) == std::tie(rhs.buffer, rhs.width, rhs.height); -} - -bool operator!=(const GameBanner& lhs, const GameBanner& rhs) -{ - return !operator==(lhs, rhs); -} - const std::string& GameFile::Lookup(DiscIO::Language language, const std::map& strings) { diff --git a/Source/Core/UICommon/GameFile.h b/Source/Core/UICommon/GameFile.h index fca89073a1..32fb9278aa 100644 --- a/Source/Core/UICommon/GameFile.h +++ b/Source/Core/UICommon/GameFile.h @@ -27,6 +27,9 @@ struct GameBanner std::vector buffer; u32 width{}; u32 height{}; + + bool operator==(const GameBanner&) const = default; + bool empty() const { return buffer.empty(); } void DoState(PointerWrap& p); }; @@ -38,9 +41,6 @@ struct GameCover void DoState(PointerWrap& p); }; -bool operator==(const GameBanner& lhs, const GameBanner& rhs); -bool operator!=(const GameBanner& lhs, const GameBanner& rhs); - // This class caches the metadata of a DiscIO::Volume (or a DOL/ELF file). class GameFile final {