mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-13 03:29:11 +00:00
VolumeWiiCrypted: Use constant naming style for constants
This commit is contained in:
parent
fb2098917b
commit
c96bcace2f
2 changed files with 12 additions and 12 deletions
|
@ -54,9 +54,9 @@ public:
|
|||
u64 GetRawSize() const override;
|
||||
|
||||
private:
|
||||
static const unsigned int s_block_header_size = 0x0400;
|
||||
static const unsigned int s_block_data_size = 0x7C00;
|
||||
static const unsigned int s_block_total_size = s_block_header_size + s_block_data_size;
|
||||
static constexpr unsigned int BLOCK_HEADER_SIZE = 0x0400;
|
||||
static constexpr unsigned int BLOCK_DATA_SIZE = 0x7C00;
|
||||
static constexpr unsigned int BLOCK_TOTAL_SIZE = BLOCK_HEADER_SIZE + BLOCK_DATA_SIZE;
|
||||
|
||||
std::unique_ptr<IBlobReader> m_pReader;
|
||||
std::unique_ptr<mbedtls_aes_context> m_AES_ctx;
|
||||
|
@ -65,7 +65,7 @@ private:
|
|||
u64 m_dataOffset;
|
||||
|
||||
mutable u64 m_LastDecryptedBlockOffset;
|
||||
mutable unsigned char m_LastDecryptedBlock[s_block_data_size];
|
||||
mutable unsigned char m_LastDecryptedBlock[BLOCK_DATA_SIZE];
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue