summaryrefslogtreecommitdiffstats
path: root/src/rw
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2020-12-01 17:42:18 +0100
committeraap <aap@papnet.eu>2020-12-01 17:42:18 +0100
commit83bbb631d1105502fb3c5b3af90578226ba35583 (patch)
treef317568c6c19250fa29b41ac0d2a99003f4cc169 /src/rw
parentfix cam-fix (diff)
downloadre3-83bbb631d1105502fb3c5b3af90578226ba35583.tar
re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.gz
re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.bz2
re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.lz
re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.xz
re3-83bbb631d1105502fb3c5b3af90578226ba35583.tar.zst
re3-83bbb631d1105502fb3c5b3af90578226ba35583.zip
Diffstat (limited to 'src/rw')
-rw-r--r--src/rw/MemoryHeap.cpp2
-rw-r--r--src/rw/MemoryHeap.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/rw/MemoryHeap.cpp b/src/rw/MemoryHeap.cpp
index 0b333ce1..469262d3 100644
--- a/src/rw/MemoryHeap.cpp
+++ b/src/rw/MemoryHeap.cpp
@@ -187,7 +187,7 @@ CMemoryHeap::Malloc(uint32 size)
void *mem = Malloc(size);
if (removeCollision) {
CTimer::Stop();
- // different on PS2
+ // TODO: different on PS2
CFileLoader::LoadCollisionFromDatFile(CCollision::ms_collisionInMemory);
removeCollision = false;
CTimer::Update();
diff --git a/src/rw/MemoryHeap.h b/src/rw/MemoryHeap.h
index 484cbfab..23163c1c 100644
--- a/src/rw/MemoryHeap.h
+++ b/src/rw/MemoryHeap.h
@@ -198,6 +198,7 @@ public:
void TidyHeap(void);
uint32 GetMemoryUsed(int32 id);
uint32 GetBlocksUsed(int32 id);
+ int32 GetLargestFreeBlock(void) { return m_freeList.m_last.m_prev->m_size; }
void ParseHeap(void);