r5sdk/r5dev/tier0/tslist.cpp
Kawe Mazidjatari e711c54bf9 DebugOverlay improvements
Use rebuild 'DestroyOverlay()'
Use 'size_t' type for MemAlloc_Internal alloc size.
2022-06-15 01:35:48 +02:00

17 lines
333 B
C++

#include "core/stdafx.h"
#include "tier0/tslist.h"
void* MemAlloc_Internal(void* pPool, size_t nSize)
{
return v_MemAlloc_Internal(pPool, nSize);
}
void TSList_Attach()
{
DetourAttach((LPVOID*)&v_MemAlloc_Internal, &MemAlloc_Internal);
}
void TSList_Detach()
{
DetourDetach((LPVOID*)&v_MemAlloc_Internal, &MemAlloc_Internal);
}