68 lines
2.2 KiB
C++
68 lines
2.2 KiB
C++
|
#pragma once
|
||
|
|
||
|
namespace Game
|
||
|
{
|
||
|
|
||
|
typedef void(*Sys_Error_t)(const char* error, ...);
|
||
|
extern Sys_Error_t Sys_Error;
|
||
|
|
||
|
typedef void(*Sys_FreeFileList_t)(const char** list);
|
||
|
extern Sys_FreeFileList_t Sys_FreeFileList;
|
||
|
|
||
|
typedef int(*Sys_IsDatabaseReady_t)();
|
||
|
extern Sys_IsDatabaseReady_t Sys_IsDatabaseReady;
|
||
|
|
||
|
typedef int(*Sys_IsDatabaseReady2_t)();
|
||
|
extern Sys_IsDatabaseReady2_t Sys_IsDatabaseReady2;
|
||
|
|
||
|
typedef bool(*Sys_IsMainThread_t)();
|
||
|
extern Sys_IsMainThread_t Sys_IsMainThread;
|
||
|
|
||
|
typedef bool(*Sys_IsRenderThread_t)();
|
||
|
extern Sys_IsRenderThread_t Sys_IsRenderThread;
|
||
|
|
||
|
typedef bool(*Sys_IsServerThread_t)();
|
||
|
extern Sys_IsServerThread_t Sys_IsServerThread;
|
||
|
|
||
|
typedef bool(*Sys_IsDatabaseThread_t)();
|
||
|
extern Sys_IsDatabaseThread_t Sys_IsDatabaseThread;
|
||
|
|
||
|
typedef const char**(*Sys_ListFiles_t)(const char* directory, const char* extension, const char* filter, int* numfiles, int wantsubs);
|
||
|
extern Sys_ListFiles_t Sys_ListFiles;
|
||
|
|
||
|
typedef int(*Sys_Milliseconds_t)();
|
||
|
extern Sys_Milliseconds_t Sys_Milliseconds;
|
||
|
|
||
|
typedef void(*Sys_LockWrite_t)(FastCriticalSection* critSect);
|
||
|
extern Sys_LockWrite_t Sys_LockWrite;
|
||
|
|
||
|
typedef void(*Sys_TempPriorityAtLeastNormalBegin_t)(TempPriority*);
|
||
|
extern Sys_TempPriorityAtLeastNormalBegin_t Sys_TempPriorityAtLeastNormalBegin;
|
||
|
|
||
|
typedef void(*Sys_TempPriorityEnd_t)(TempPriority*);
|
||
|
extern Sys_TempPriorityEnd_t Sys_TempPriorityEnd;
|
||
|
|
||
|
typedef void(*Sys_EnterCriticalSection_t)(CriticalSection critSect);
|
||
|
extern Sys_EnterCriticalSection_t Sys_EnterCriticalSection;
|
||
|
|
||
|
typedef void(*Sys_LeaveCriticalSection_t)(CriticalSection critSect);
|
||
|
extern Sys_LeaveCriticalSection_t Sys_LeaveCriticalSection;
|
||
|
|
||
|
typedef char*(*Sys_DefaultInstallPath_t)();
|
||
|
extern Sys_DefaultInstallPath_t Sys_DefaultInstallPath;
|
||
|
|
||
|
typedef bool(*Sys_SendPacket_t)(netsrc_t sock, size_t len, const char* format, netadr_t adr);
|
||
|
extern Sys_SendPacket_t Sys_SendPacket;
|
||
|
|
||
|
typedef void(*Sys_ShowConsole_t)();
|
||
|
extern Sys_ShowConsole_t Sys_ShowConsole;
|
||
|
|
||
|
typedef void(*Sys_SuspendOtherThreads_t)();
|
||
|
extern Sys_SuspendOtherThreads_t Sys_SuspendOtherThreads;
|
||
|
|
||
|
extern char(*sys_exitCmdLine)[1024];
|
||
|
|
||
|
extern void Sys_LockRead(FastCriticalSection* critSect);
|
||
|
extern void Sys_UnlockRead(FastCriticalSection* critSect);
|
||
|
}
|