Permalink
Browse files

EXI_DeviceIPL: In-class initialize data members where applicable

  • Loading branch information...
lioncash committed Jun 2, 2018
1 parent f09f83c commit b6203c66c20e83b9f254bf58cadaeab235a51ecc
Showing with 6 additions and 9 deletions.
  1. +1 −4 Source/Core/Core/HW/EXI/EXI_DeviceIPL.cpp
  2. +5 −5 Source/Core/Core/HW/EXI/EXI_DeviceIPL.h
@@ -95,7 +95,7 @@ void CEXIIPL::Descrambler(u8* data, u32 size)
}
}
CEXIIPL::CEXIIPL() : m_uPosition(0), m_uAddress(0), m_uRWOffset(0), m_FontsLoaded(false)
CEXIIPL::CEXIIPL()
{
// Create the IPL
m_pIPL = static_cast<u8*>(Common::AllocateMemoryPages(ROM_SIZE));
@@ -123,9 +123,6 @@ CEXIIPL::CEXIIPL() : m_uPosition(0), m_uAddress(0), m_uRWOffset(0), m_FontsLoade
LoadFontFile((File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + FONT_WINDOWS_1252), 0x1fcf00);
}
// Clear RTC
memset(m_RTC, 0, sizeof(m_RTC));
// We Overwrite language selection here since it's possible on the GC to change the language as
// you please
g_SRAM.lang = SConfig::GetInstance().SelectedLanguage;
@@ -56,15 +56,15 @@ class CEXIIPL : public IEXIDevice
// STATE_TO_SAVE
//! RealTimeClock
u8 m_RTC[4];
u8 m_RTC[4] = {};
//! Helper
u32 m_uPosition;
u32 m_uAddress;
u32 m_uRWOffset;
u32 m_uPosition = 0;
u32 m_uAddress = 0;
u32 m_uRWOffset = 0;
std::string m_buffer;
bool m_FontsLoaded;
bool m_FontsLoaded = false;
void UpdateRTC();

0 comments on commit b6203c6

Please sign in to comment.