19 lines
495 B
C++
Executable File
19 lines
495 B
C++
Executable File
#include "platform/platform.h"
|
|
#include "console/console.h"
|
|
#include "console/consoleTypes.h"
|
|
#include "platform/platformMutex.h"
|
|
|
|
S32 sgBackgroundSleepTime = 3000;
|
|
S32 sgTimeManagerProcessInterval = 0;
|
|
|
|
void Platform::initConsole()
|
|
{
|
|
Con::addVariable("pref::backgroundSleepTime", TypeS32, &sgBackgroundSleepTime);
|
|
Con::addVariable("pref::timeManagerProcessInterval", TypeS32, &sgTimeManagerProcessInterval);
|
|
}
|
|
|
|
S32 Platform::getBackgroundSleepTime()
|
|
{
|
|
return sgBackgroundSleepTime;
|
|
}
|