mirror of
https://github.com/Fledge68/WiiFlow_Lite.git
synced 2024-11-27 13:44:15 +01:00
-normally svn selects all changed files automatically, oh well...
This commit is contained in:
parent
110a626ddc
commit
8ca6d767bc
@ -12,8 +12,8 @@ void CMEM2Alloc::init(unsigned int size)
|
|||||||
{
|
{
|
||||||
m_baseAddress = (SBlock *) std::max(((u32)SYS_GetArena2Lo() + 31) & ~31, IOS_RELOAD_AREA);
|
m_baseAddress = (SBlock *) std::max(((u32)SYS_GetArena2Lo() + 31) & ~31, IOS_RELOAD_AREA);
|
||||||
m_endAddress = (SBlock *)((char *)m_baseAddress + std::min(size * 0x100000, SYS_GetArena2Size() & ~31));
|
m_endAddress = (SBlock *)((char *)m_baseAddress + std::min(size * 0x100000, SYS_GetArena2Size() & ~31));
|
||||||
if (m_endAddress > (SBlock *)0x93000000)
|
if (m_endAddress > (SBlock *)0x93300000)
|
||||||
m_endAddress = (SBlock *)0x93000000;
|
m_endAddress = (SBlock *)0x93300000;
|
||||||
SYS_SetArena2Lo(m_endAddress);
|
SYS_SetArena2Lo(m_endAddress);
|
||||||
LWP_MutexInit(&m_mutex, 0);
|
LWP_MutexInit(&m_mutex, 0);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user