GCMemcard: Use BigEndianValue for Header.m_encoding.
This commit is contained in:
parent
8eabcbf294
commit
256d336219
|
@ -111,7 +111,7 @@ struct Header // Offset Size Description
|
|||
Common::BigEndianValue<u16>
|
||||
m_device_id; // 0x0020 2 0 if formated in slot A 1 if formated in slot B
|
||||
Common::BigEndianValue<u16> m_size_mb; // 0x0022 2 Size of memcard in Mbits
|
||||
u16 m_encoding; // 0x0024 2 Encoding (Windows-1252 or Shift JIS)
|
||||
Common::BigEndianValue<u16> m_encoding; // 0x0024 2 Encoding (Windows-1252 or Shift JIS)
|
||||
u8 m_unused_1[468]; // 0x0026 468 Unused (0xff)
|
||||
u16 m_update_counter; // 0x01fa 2 Update Counter (?, probably unused)
|
||||
u16 m_checksum; // 0x01fc 2 Additive Checksum
|
||||
|
@ -138,7 +138,7 @@ struct Header // Offset Size Description
|
|||
{
|
||||
memset(this, 0xFF, BLOCK_SIZE);
|
||||
m_size_mb = sizeMb;
|
||||
m_encoding = BE16(shift_jis ? 1 : 0);
|
||||
m_encoding = shift_jis ? 1 : 0;
|
||||
u64 rand = Common::Timer::GetLocalTimeSinceJan1970() - ExpansionInterface::CEXIIPL::GC_EPOCH;
|
||||
m_format_time = rand;
|
||||
for (int i = 0; i < 12; i++)
|
||||
|
|
Loading…
Reference in New Issue