From c3d9b3deb6b4eed5017f89eea531b4cbafcb8902 Mon Sep 17 00:00:00 2001 From: "fix94.1" Date: Fri, 6 Jul 2012 12:12:03 +0000 Subject: [PATCH] -increased mem2 usage by 1mb (thats still safe) --- source/main.cpp | 2 +- source/memory/mem2alloc.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/main.cpp b/source/main.cpp index a40a8603..9d6c62dd 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -42,7 +42,7 @@ int main(int argc, char **argv) CVideo vid; vid.init(); - MEM2_init(46); //Should be safe to use + MEM2_init(47); //Should be safe to use vid.waitMessage(0.2f); AllocSDGeckoBuffer(); diff --git a/source/memory/mem2alloc.cpp b/source/memory/mem2alloc.cpp index 8e950238..cc8ef62c 100644 --- a/source/memory/mem2alloc.cpp +++ b/source/memory/mem2alloc.cpp @@ -12,8 +12,8 @@ void CMEM2Alloc::init(unsigned int size) { 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)); - if (m_endAddress > (SBlock *) 0x93300000) //rest is reserved for usb/usb2/network and other stuff... (0xE0000 bytes) - m_endAddress = (SBlock *) 0x93300000; + if (m_endAddress > (SBlock *) 0x93100000) //rest is reserved for usb/usb2/network and other stuff... (0xE0000 bytes) + m_endAddress = (SBlock *) 0x93100000; SYS_SetArena2Lo(m_endAddress); LWP_MutexInit(&m_mutex, 0); }