Permalink
Browse files

EXI_DeviceIPL: Use std::array where applicable

  • Loading branch information...
lioncash committed Jun 2, 2018
1 parent bf4775f commit 0d89650950acb6dac6b94092646c77714a1941fc
Showing with 4 additions and 3 deletions.
  1. +2 −2 Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp
  2. +2 −1 Source/Core/Core/HW/EXI/EXI_DeviceIPL.h
@@ -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 @@ class CEXIIPL : public IEXIDevice
// STATE_TO_SAVE
//! RealTimeClock
u8 m_rtc[4] = {};
std::array<u8, 4> m_rtc{};
//! Helper
u32 m_position = 0;

0 comments on commit 0d89650

Please sign in to comment.