aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/gameutils.h
diff options
context:
space:
mode:
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.h')
-rw-r--r--NorthstarDedicatedTest/gameutils.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/gameutils.h b/NorthstarDedicatedTest/gameutils.h
index 69da4325..8def57eb 100644
--- a/NorthstarDedicatedTest/gameutils.h
+++ b/NorthstarDedicatedTest/gameutils.h
@@ -1,6 +1,25 @@
#pragma once
#include "convar.h"
+// memory
+class IMemAlloc
+{
+public:
+ struct VTable
+ {
+ void* unknown[1];
+ void* (*Alloc)(IMemAlloc* memAlloc, size_t nSize);
+ void* unknown2[3];
+ void (*Free)(IMemAlloc* memAlloc, void* pMem);
+ };
+
+ VTable* m_vtable;
+};
+
+extern IMemAlloc* g_pMemAllocSingleton;
+typedef IMemAlloc*(*CreateGlobalMemAllocType)();
+extern CreateGlobalMemAllocType CreateGlobalMemAlloc;
+
// cmd.h
enum class ECommandTarget_t
{