EXI_DeviceIPL: Use std::array where applicable

This commit is contained in:
Lioncash 2018-06-02 14:18:02 -04:00
parent bf4775f95f
commit 0d89650950
2 changed files with 4 additions and 3 deletions

View File

@ -236,8 +236,8 @@ void CEXIIPL::SetCS(int cs)
void CEXIIPL::UpdateRTC() void CEXIIPL::UpdateRTC()
{ {
u32 rtc = Common::swap32(GetEmulatedTime(GC_EPOCH)); const u32 rtc = Common::swap32(GetEmulatedTime(GC_EPOCH));
std::memcpy(m_rtc, &rtc, sizeof(u32)); std::memcpy(m_rtc.data(), &rtc, sizeof(u32));
} }
bool CEXIIPL::IsPresent() const bool CEXIIPL::IsPresent() const

View File

@ -4,6 +4,7 @@
#pragma once #pragma once
#include <array>
#include <string> #include <string>
#include "Core/HW/EXI/EXI_Device.h" #include "Core/HW/EXI/EXI_Device.h"
@ -56,7 +57,7 @@ private:
// STATE_TO_SAVE // STATE_TO_SAVE
//! RealTimeClock //! RealTimeClock
u8 m_rtc[4] = {}; std::array<u8, 4> m_rtc{};
//! Helper //! Helper
u32 m_position = 0; u32 m_position = 0;