mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-29 16:25:42 +00:00
Revert "update"
This reverts commit 7ac9c55bf1efa23db674dba4f2c7ada7ca344d7d.
This commit is contained in:
parent
5cc2abc9ae
commit
2b14e5448e
3 changed files with 6 additions and 20 deletions
|
|
@ -154,7 +154,7 @@ class ConsoleValue
|
||||||
|
|
||||||
TORQUE_FORCEINLINE bool hasAllocatedData() const
|
TORQUE_FORCEINLINE bool hasAllocatedData() const
|
||||||
{
|
{
|
||||||
return (isConsoleType() && data != NULL);
|
return (type == ConsoleValueType::cvString || isConsoleType()) && data != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
const char* getConsoleData() const;
|
const char* getConsoleData() const;
|
||||||
|
|
@ -166,12 +166,6 @@ class ConsoleValue
|
||||||
dFree(data);
|
dFree(data);
|
||||||
data = NULL;
|
data = NULL;
|
||||||
}
|
}
|
||||||
else if (type == ConsoleValueType::cvString)
|
|
||||||
{
|
|
||||||
if (s != StringTable->EmptyString())
|
|
||||||
dFree(s);
|
|
||||||
}
|
|
||||||
type = ConsoleValueType::cvNULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
|
||||||
|
|
@ -30,8 +30,6 @@
|
||||||
#include "platform/threads/mutex.h"
|
#include "platform/threads/mutex.h"
|
||||||
#include "core/module.h"
|
#include "core/module.h"
|
||||||
|
|
||||||
#if !defined(TORQUE_DISABLE_MEMORY_MANAGER)
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <dbghelp.h>
|
#include <dbghelp.h>
|
||||||
|
|
@ -42,8 +40,6 @@
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
// If profile paths are enabled, disable profiling of the
|
// If profile paths are enabled, disable profiling of the
|
||||||
// memory manager as that would cause a cyclic dependency
|
// memory manager as that would cause a cyclic dependency
|
||||||
// through the string table's allocation stuff used by the
|
// through the string table's allocation stuff used by the
|
||||||
|
|
@ -181,11 +177,11 @@ namespace Memory
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
if (report.find("getDocsLink") != std::string::npos)
|
//if (report.find("getDocsLink") != std::string::npos)
|
||||||
{
|
//{
|
||||||
//known issue. one off allocation
|
// //known issue. one off allocation
|
||||||
memLog[curRep].skip = true;
|
// memLog[curRep].skip = true;
|
||||||
}
|
//}
|
||||||
|
|
||||||
for (U32 oldRep = start; oldRep < curRep; ++oldRep)
|
for (U32 oldRep = start; oldRep < curRep; ++oldRep)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -56,10 +56,6 @@
|
||||||
/// Define me if you want to disable Torque memory manager.
|
/// Define me if you want to disable Torque memory manager.
|
||||||
#cmakedefine TORQUE_DISABLE_MEMORY_MANAGER
|
#cmakedefine TORQUE_DISABLE_MEMORY_MANAGER
|
||||||
|
|
||||||
#ifdef TORQUE_RELEASE
|
|
||||||
#define TORQUE_DISABLE_MEMORY_MANAGER
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/// Define me if you want to disable the virtual mount system.
|
/// Define me if you want to disable the virtual mount system.
|
||||||
#cmakedefine TORQUE_DISABLE_VIRTUAL_MOUNT_SYSTEM
|
#cmakedefine TORQUE_DISABLE_VIRTUAL_MOUNT_SYSTEM
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue