summaryrefslogtreecommitdiffstats
path: root/src/leeds
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2021-01-23 00:36:34 +0100
committerNikolay Korolev <nickvnuk@gmail.com>2021-01-23 00:36:34 +0100
commit965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa (patch)
tree271fa6491edb2fe5b97486f5df4ec83b77a5e8ed /src/leeds
parentscript coronas (diff)
parentcSmallHeap (diff)
downloadre3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar.gz
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar.bz2
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar.lz
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar.xz
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.tar.zst
re3-965a3d6eec31f4f7f98cd01ac2fad606dcb3f8fa.zip
Diffstat (limited to 'src/leeds')
-rw-r--r--src/leeds/smallHeap.cpp20
-rw-r--r--src/leeds/smallHeap.h17
2 files changed, 37 insertions, 0 deletions
diff --git a/src/leeds/smallHeap.cpp b/src/leeds/smallHeap.cpp
new file mode 100644
index 00000000..262113af
--- /dev/null
+++ b/src/leeds/smallHeap.cpp
@@ -0,0 +1,20 @@
+#include "common.h"
+#include "smallHeap.h"
+
+cSmallHeap cSmallHeap::msInstance;
+
+cSmallHeap::cSmallHeap()
+{
+ bLocked = false;
+ bUnk = false;
+}
+
+void cSmallHeap::Lock()
+{
+ // TODO: PS2 code
+}
+
+void cSmallHeap::Unlock()
+{
+ // TODO: PS2 code
+} \ No newline at end of file
diff --git a/src/leeds/smallHeap.h b/src/leeds/smallHeap.h
new file mode 100644
index 00000000..f2897688
--- /dev/null
+++ b/src/leeds/smallHeap.h
@@ -0,0 +1,17 @@
+#pragma once
+
+#include "memoryManager.h"
+
+class cSmallHeap : public base::cMemoryManager
+{
+ bool bLocked;
+ bool bUnk;
+public:
+ cSmallHeap();
+ void Lock();
+ void Unlock();
+
+ bool IsLocked() const { return bLocked; }
+
+ static cSmallHeap msInstance;
+}; \ No newline at end of file