EXI_DeviceIPL: Use std::array where applicable
This commit is contained in:
parent
bf4775f95f
commit
0d89650950
|
@ -236,8 +236,8 @@ void CEXIIPL::SetCS(int cs)
|
|||
|
||||
void CEXIIPL::UpdateRTC()
|
||||
{
|
||||
u32 rtc = Common::swap32(GetEmulatedTime(GC_EPOCH));
|
||||
std::memcpy(m_rtc, &rtc, sizeof(u32));
|
||||
const u32 rtc = Common::swap32(GetEmulatedTime(GC_EPOCH));
|
||||
std::memcpy(m_rtc.data(), &rtc, sizeof(u32));
|
||||
}
|
||||
|
||||
bool CEXIIPL::IsPresent() const
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <array>
|
||||
#include <string>
|
||||
|
||||
#include "Core/HW/EXI/EXI_Device.h"
|
||||
|
@ -56,7 +57,7 @@ private:
|
|||
|
||||
// STATE_TO_SAVE
|
||||
//! RealTimeClock
|
||||
u8 m_rtc[4] = {};
|
||||
std::array<u8, 4> m_rtc{};
|
||||
|
||||
//! Helper
|
||||
u32 m_position = 0;
|
||||
|
|
Loading…
Reference in New Issue