29 #include "../idlib/precompiled.h"
34 "english",
"spanish",
"italian",
"german",
"french",
"russian",
35 "polish",
"korean",
"japanese",
"chinese",
NULL
46 va_start( argptr, fmt );
125 idStr::snPrintf( dllName, maxLength,
"%s" CPUSTRING
".dll", baseName );
126 #elif defined( __linux__ )
128 #elif defined( MACOS_X )
131 #error OS define is required
166 timeString[0] =
'\0';
172 if ( lang.
Icmp(
"english" ) == 0 ) {
174 out =
va(
"%02d", time->tm_mon + 1 );
176 out +=
va(
"%02d", time->tm_mday );
178 out +=
va(
"%d", time->tm_year + 1900 );
180 if ( time->tm_hour > 12 ) {
181 out +=
va(
"%02d", time->tm_hour - 12 );
182 }
else if ( time->tm_hour == 0 ) {
185 out +=
va(
"%02d", time->tm_hour );
188 out +=
va(
"%02d", time->tm_min );
189 if ( time->tm_hour >= 12 ) {
196 out =
va(
"%02d", time->tm_mday );
198 out +=
va(
"%02d", time->tm_mon + 1 );
200 out +=
va(
"%d", time->tm_year + 1900 );
202 out +=
va(
"%02d", time->tm_hour );
204 out +=
va(
"%02d", time->tm_min );
virtual double GetClockTicks(void)
static int snPrintf(char *dest, int size, const char *fmt,...) id_attribute((format(printf
double Sys_ClockTicksPerSecond(void)
virtual const char * GetProcessorString(void)
virtual const char * GetCallStackCurStr(int depth)
idCVarSystem * cvarSystem
double Sys_GetClockTicks(void)
virtual void DLL_Unload(int dllHandle)
const char * sysLanguageNames[]
virtual sysEvent_t GenerateMouseButtonEvent(int button, bool down)
void Sys_FPU_EnableExceptions(int exceptions)
const char * Sys_GetCallStackStr(const address_t *callStack, int callStackSize)
idCVar sys_lang("sys_lang","english", CVAR_SYSTEM|CVAR_ARCHIVE,"", sysLanguageNames, idCmdSystem::ArgCompletion_String< sysLanguageNames >)
virtual double ClockTicksPerSecond(void)
virtual void * DLL_GetProcAddress(int dllHandle, const char *procName)
void Sys_DLL_Unload(int handle)
GLint GLint GLsizei GLsizei GLsizei depth
void Sys_FPU_SetDAZ(bool enable)
virtual cpuid_t GetProcessorId(void)
virtual void FPU_SetDAZ(bool enable)
virtual const char * FPU_GetState(void)
const char * Sys_FPU_GetState(void)
int Icmp(const char *text) const
bool Sys_UnlockMemory(void *ptr, int bytes)
int Sys_DLL_Load(const char *path)
virtual bool LockMemory(void *ptr, int bytes)
bool Sys_FPU_StackIsEmpty(void)
virtual void ShutdownSymbols(void)
virtual const char * GetCVarString(const char *name) const =0
void * Sys_DLL_GetProcAddress(int handle, const char *sym)
virtual bool UnlockMemory(void *ptr, int bytes)
static void Copynz(char *dest, const char *src, int destsize)
void Sys_GetCallStack(address_t *callStack, const int callStackSize)
bool Sys_LockMemory(void *ptr, int bytes)
virtual const char * GetCallStackStr(const address_t *callStack, const int callStackSize)
virtual void FPU_SetFTZ(bool enable)
void Sys_ShutdownSymbols(void)
virtual bool FPU_StackIsEmpty(void)
const char * Sys_GetProcessorString(void)
virtual sysEvent_t GenerateMouseMoveEvent(int deltax, int deltay)
virtual int DLL_Load(const char *dllName)
void Sys_DebugVPrintf(const char *fmt, va_list arg)
const char * Sys_GetCallStackCurStr(int depth)
const char * Sys_TimeStampToStr(ID_TIME_T timeStamp)
virtual void FPU_EnableExceptions(int exceptions)
void Sys_FPU_SetFTZ(bool enable)
virtual void virtual void DebugVPrintf(const char *fmt, va_list arg)
char * va(const char *fmt,...)
struct tm * localtime(const time_t *)
virtual void DebugPrintf(const char *fmt,...) id_attribute((format(printf
virtual void GetCallStack(address_t *callStack, const int callStackSize)
cpuid_t Sys_GetProcessorId(void)
virtual void DLL_GetFileName(const char *baseName, char *dllName, int maxLength)