diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-03 20:55:19 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-12-03 20:55:19 +0000 |
commit | 9e8232e97db1cfe9f0f9a69bdfde5048a6290df1 (patch) | |
tree | be1324c39dd1680335f4bfaf3d1660b5d6e31514 /NorthstarDedicatedTest/gameutils.h | |
parent | f33bab4fb3586fd06896a7730bce8913c2616b78 (diff) | |
download | NorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.tar.gz NorthstarLauncher-9e8232e97db1cfe9f0f9a69bdfde5048a6290df1.zip |
slightly awful fix for allocation issues
Diffstat (limited to 'NorthstarDedicatedTest/gameutils.h')
-rw-r--r-- | NorthstarDedicatedTest/gameutils.h | 19 |
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 { |