diff options
| author | Tilka <tilkax@gmail.com> | 2024-10-12 09:40:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-12 09:40:20 +0100 |
| commit | 2024d9f8ff4ac84c58dada8c95e2a2529f2fef1a (patch) | |
| tree | 944ac9e38187639072e086c4fb4212fd8ce676b7 /Source/Core/DiscIO/WiiSaveBanner.cpp | |
| parent | f635c71f289815e6846664bcac303325a1809617 (diff) | |
| parent | 23ba1c9133f8040375fc33e3da25880080d0b4a8 (diff) | |
Merge pull request #13126 from jordan-woyak/no-big-banner
DolphinQt: Restrict size of banner image in game properties info tab.
Diffstat (limited to 'Source/Core/DiscIO/WiiSaveBanner.cpp')
| -rw-r--r-- | Source/Core/DiscIO/WiiSaveBanner.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/Core/DiscIO/WiiSaveBanner.cpp b/Source/Core/DiscIO/WiiSaveBanner.cpp index 91350fb030..7c2489ea93 100644 --- a/Source/Core/DiscIO/WiiSaveBanner.cpp +++ b/Source/Core/DiscIO/WiiSaveBanner.cpp @@ -15,10 +15,6 @@ namespace DiscIO { -constexpr u32 BANNER_WIDTH = 192; -constexpr u32 BANNER_HEIGHT = 64; -constexpr u32 BANNER_SIZE = BANNER_WIDTH * BANNER_HEIGHT * 2; - constexpr u32 ICON_WIDTH = 48; constexpr u32 ICON_HEIGHT = 48; constexpr u32 ICON_SIZE = ICON_WIDTH * ICON_HEIGHT * 2; @@ -31,6 +27,8 @@ WiiSaveBanner::WiiSaveBanner(u64 title_id) WiiSaveBanner::WiiSaveBanner(const std::string& path) : m_path(path) { + constexpr u32 BANNER_SIZE = BANNER_WIDTH * BANNER_HEIGHT * 2; + constexpr size_t MINIMUM_SIZE = sizeof(Header) + BANNER_SIZE + ICON_SIZE; File::IOFile file(path, "rb"); if (!file.ReadArray(&m_header, 1)) |
