mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-22 02:09:06 +00:00
VolumeWiiCrypted: Replace some hardcoded values with constants
This commit is contained in:
parent
521ccd7b44
commit
28b441ebea
2 changed files with 12 additions and 7 deletions
|
@ -44,6 +44,10 @@ public:
|
|||
bool ChangePartition(u64 offset) 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;
|
||||
|
||||
std::unique_ptr<IBlobReader> m_pReader;
|
||||
std::unique_ptr<aes_context> m_AES_ctx;
|
||||
|
||||
|
@ -53,7 +57,7 @@ private:
|
|||
u64 m_dataOffset;
|
||||
|
||||
mutable u64 m_LastDecryptedBlockOffset;
|
||||
mutable unsigned char m_LastDecryptedBlock[0x7C00];
|
||||
mutable unsigned char m_LastDecryptedBlock[s_block_data_size];
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue