1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +00:00

Completely kill off CoreLibExe

This commit is contained in:
2012-01-24 23:05:48 -05:00
parent 63a9eea771
commit 91fc595407
36 changed files with 178 additions and 1145 deletions

View File

@ -293,23 +293,6 @@ class ErrorStream : public NxUserOutputStream
}
} gErrorStream;
// This class allows PhysX to use our heap manager
static class HeapAllocator : public NxUserAllocator {
public:
void * malloc (NxU32 size) {
return malloc(size);
}
void * mallocDEBUG (NxU32 size, const char * fileName, int line) {
return malloc(size);
}
void * realloc (void * memory, NxU32 size) {
return realloc(memory, size);
}
void free (void * memory) {
free(memory);
}
} gHeapAllocator;
/////////////////////////////////////////////////////////////////
//
@ -419,7 +402,7 @@ plSimulationMgr::plSimulationMgr()
bool plSimulationMgr::InitSimulation()
{
fSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, &gHeapAllocator, &gErrorStream);
fSDK = NxCreatePhysicsSDK(NX_PHYSICS_SDK_VERSION, NULL, &gErrorStream);
if (!fSDK)
return false; // client will handle this and ask user to install