EXI_DeviceIPL: In-class initialize data members where applicable

This commit is contained in:
Lioncash 2018-06-02 14:08:01 -04:00
parent f09f83c309
commit b6203c66c2
2 changed files with 6 additions and 9 deletions

View File

@ -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 // Create the IPL
m_pIPL = static_cast<u8*>(Common::AllocateMemoryPages(ROM_SIZE)); 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); 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 // We Overwrite language selection here since it's possible on the GC to change the language as
// you please // you please
g_SRAM.lang = SConfig::GetInstance().SelectedLanguage; g_SRAM.lang = SConfig::GetInstance().SelectedLanguage;

View File

@ -56,15 +56,15 @@ private:
// STATE_TO_SAVE // STATE_TO_SAVE
//! RealTimeClock //! RealTimeClock
u8 m_RTC[4]; u8 m_RTC[4] = {};
//! Helper //! Helper
u32 m_uPosition; u32 m_uPosition = 0;
u32 m_uAddress; u32 m_uAddress = 0;
u32 m_uRWOffset; u32 m_uRWOffset = 0;
std::string m_buffer; std::string m_buffer;
bool m_FontsLoaded; bool m_FontsLoaded = false;
void UpdateRTC(); void UpdateRTC();