mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-20 04:30:12 +02:00
Quake 4 integrated with DoomRTX
This commit is contained in:
@@ -885,4 +885,29 @@ void idDynamicBlockAlloc<type, baseBlockSize, minBlockSize>::CheckMemory( void )
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef QUAKE4
|
||||
class Memory
|
||||
{
|
||||
public:
|
||||
static void* Allocate(size_t size)
|
||||
{
|
||||
return malloc(size);
|
||||
}
|
||||
|
||||
static void Free(void* ptr)
|
||||
{
|
||||
free(ptr);
|
||||
}
|
||||
|
||||
static void DeinitAllocator()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
static int MSize() {
|
||||
return 1;
|
||||
}
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* !__HEAP_H__ */
|
||||
|
||||
Reference in New Issue
Block a user