mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Update console.cpp
move shutdown function to after PathExpandos is defined and clear it to remove it from memlog
This commit is contained in:
parent
d8315267e8
commit
d93f094cf5
1 changed files with 17 additions and 15 deletions
|
|
@ -427,21 +427,6 @@ void init()
|
|||
smConsoleInput.notify(postConsoleInput);
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
||||
void shutdown()
|
||||
{
|
||||
AssertFatal(active == true, "Con::shutdown should only be called once.");
|
||||
active = false;
|
||||
|
||||
smConsoleInput.remove(postConsoleInput);
|
||||
|
||||
consoleLogFile.close();
|
||||
Namespace::shutdown();
|
||||
AbstractClassRep::shutdown();
|
||||
Compiler::freeConsoleParserList();
|
||||
gGlobalVars.reset();
|
||||
}
|
||||
|
||||
bool isActive()
|
||||
{
|
||||
|
|
@ -2111,6 +2096,23 @@ void ensureTrailingSlash(char* pDstPath, const char* pSrcPath, S32 dstSize)
|
|||
pDstPath[trailIndex] = 0;
|
||||
}
|
||||
|
||||
//--------------------------------------
|
||||
|
||||
void shutdown()
|
||||
{
|
||||
AssertFatal(active == true, "Con::shutdown should only be called once.");
|
||||
active = false;
|
||||
|
||||
smConsoleInput.remove(postConsoleInput);
|
||||
|
||||
consoleLogFile.close();
|
||||
Namespace::shutdown();
|
||||
AbstractClassRep::shutdown();
|
||||
Compiler::freeConsoleParserList();
|
||||
gGlobalVars.reset();
|
||||
PathExpandos.clear();
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
StringTableEntry getDSOPath(const char *scriptPath)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue