mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-08 18:40:44 +00:00
EXI_DeviceIPL: Remove m_bNTSC
It's only used in the constructor.
This commit is contained in:
parent
f85266df20
commit
ec969da6bd
@ -91,17 +91,16 @@ void CEXIIPL::Descrambler(u8* data, u32 size)
|
|||||||
|
|
||||||
CEXIIPL::CEXIIPL() : m_uPosition(0), m_uAddress(0), m_uRWOffset(0), m_FontsLoaded(false)
|
CEXIIPL::CEXIIPL() : m_uPosition(0), m_uAddress(0), m_uRWOffset(0), m_FontsLoaded(false)
|
||||||
{
|
{
|
||||||
// Determine region
|
|
||||||
m_bNTSC = DiscIO::IsNTSC(SConfig::GetInstance().m_region);
|
|
||||||
|
|
||||||
// Create the IPL
|
// Create the IPL
|
||||||
m_pIPL = static_cast<u8*>(Common::AllocateMemoryPages(ROM_SIZE));
|
m_pIPL = static_cast<u8*>(Common::AllocateMemoryPages(ROM_SIZE));
|
||||||
|
|
||||||
if (SConfig::GetInstance().bHLE_BS2)
|
if (SConfig::GetInstance().bHLE_BS2)
|
||||||
{
|
{
|
||||||
// Copy header
|
// Copy header
|
||||||
memcpy(m_pIPL, m_bNTSC ? iplverNTSC : iplverPAL,
|
if (DiscIO::IsNTSC(SConfig::GetInstance().m_region))
|
||||||
m_bNTSC ? sizeof(iplverNTSC) : sizeof(iplverPAL));
|
memcpy(m_pIPL, iplverNTSC, sizeof(iplverNTSC));
|
||||||
|
else
|
||||||
|
memcpy(m_pIPL, iplverPAL, sizeof(iplverPAL));
|
||||||
|
|
||||||
// Load fonts
|
// Load fonts
|
||||||
LoadFontFile((File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + FONT_SHIFT_JIS), 0x1aff00);
|
LoadFontFile((File::GetSysDirectory() + GC_SYS_DIR + DIR_SEP + FONT_SHIFT_JIS), 0x1aff00);
|
||||||
|
@ -52,9 +52,6 @@ private:
|
|||||||
REGION_EUART = 0x300001
|
REGION_EUART = 0x300001
|
||||||
};
|
};
|
||||||
|
|
||||||
// Region
|
|
||||||
bool m_bNTSC;
|
|
||||||
|
|
||||||
//! IPL
|
//! IPL
|
||||||
u8* m_pIPL;
|
u8* m_pIPL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user