Initial commit
This commit is contained in:
18
Torque/SDK/engine/platform/platform.cc
Normal file
18
Torque/SDK/engine/platform/platform.cc
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "platform/platform.h"
|
||||
#include "console/console.h"
|
||||
#include "console/consoleTypes.h"
|
||||
#include "platform/platformMutex.h"
|
||||
|
||||
S32 sgBackgroundProcessSleepTime = 25;
|
||||
S32 sgTimeManagerProcessInterval = 0;
|
||||
|
||||
void Platform::initConsole()
|
||||
{
|
||||
Con::addVariable("Pref::backgroundSleepTime", TypeS32, &sgBackgroundProcessSleepTime);
|
||||
Con::addVariable("Pref::timeManagerProcessInterval", TypeS32, &sgTimeManagerProcessInterval);
|
||||
}
|
||||
|
||||
S32 Platform::getBackgroundSleepTime()
|
||||
{
|
||||
return sgBackgroundProcessSleepTime;
|
||||
}
|
||||
Reference in New Issue
Block a user