mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
Merge pull request #13537 from tygyh/DiscIO-Make-variables-constexpr
DiscIO: Make variables constexpr
This commit is contained in:
commit
7e7b75c1e6
5 changed files with 16 additions and 16 deletions
|
@ -15,8 +15,8 @@ namespace DiscIO
|
|||
{
|
||||
static constexpr u32 CISO_MAGIC = 0x4F534943; // "CISO" (byteswapped to little endian)
|
||||
|
||||
static const u32 CISO_HEADER_SIZE = 0x8000;
|
||||
static const u32 CISO_MAP_SIZE = CISO_HEADER_SIZE - sizeof(u32) - sizeof(char) * 4;
|
||||
static constexpr u32 CISO_HEADER_SIZE = 0x8000;
|
||||
static constexpr u32 CISO_MAP_SIZE = CISO_HEADER_SIZE - sizeof(u32) - sizeof(char) * 4;
|
||||
|
||||
struct CISOHeader
|
||||
{
|
||||
|
@ -53,7 +53,7 @@ private:
|
|||
CISOFileReader(File::IOFile file);
|
||||
|
||||
typedef u16 MapType;
|
||||
static const MapType UNUSED_BLOCK_ID = UINT16_MAX;
|
||||
static constexpr MapType UNUSED_BLOCK_ID = UINT16_MAX;
|
||||
|
||||
File::IOFile m_file;
|
||||
u64 m_size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue