mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-30 20:58:54 +00:00
DiscIO: Make variables constexpr
This commit is contained in:
parent
f8bf35e6f0
commit
f6ba69f99a
5 changed files with 16 additions and 16 deletions
|
@ -53,8 +53,8 @@ public:
|
|||
std::array<u8, 20> GetSyncHash() const override;
|
||||
|
||||
private:
|
||||
static const u32 GC_BANNER_WIDTH = 96;
|
||||
static const u32 GC_BANNER_HEIGHT = 32;
|
||||
static constexpr u32 GC_BANNER_WIDTH = 96;
|
||||
static constexpr u32 GC_BANNER_HEIGHT = 32;
|
||||
|
||||
struct GCBannerInformation
|
||||
{
|
||||
|
@ -95,8 +95,8 @@ private:
|
|||
ConvertedGCBanner LoadBannerFile() const;
|
||||
ConvertedGCBanner ExtractBannerInformation(const GCBanner& banner_file, bool is_bnr1) const;
|
||||
|
||||
static const size_t BNR1_SIZE = sizeof(GCBanner) - sizeof(GCBannerInformation) * 5;
|
||||
static const size_t BNR2_SIZE = sizeof(GCBanner);
|
||||
static constexpr size_t BNR1_SIZE = sizeof(GCBanner) - sizeof(GCBannerInformation) * 5;
|
||||
static constexpr size_t BNR2_SIZE = sizeof(GCBanner);
|
||||
|
||||
Common::Lazy<ConvertedGCBanner> m_converted_banner;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue