28 #include "../../idlib/precompiled.h"
31 #include <sys/types.h>
41 #define MAX_OSPATH 256
50 return frameNum * 16.0;
73 va_start (argptr, error);
74 vprintf (error, argptr);
130 memset( &ev, 0,
sizeof( ev ) );
151 bool dironly =
false;
161 if ( extension[0] ==
'/' && extension[1] == 0 ) {
167 if ((fdir = opendir(directory)) ==
NULL) {
171 while ((d = readdir(fdir)) !=
NULL) {
172 idStr::snprintf( search,
sizeof(search),
"%s/%s", directory, d->d_name );
173 if (stat(search, &st) == -1)
179 if ( extension && extension[0] && ext.
Icmp( &extension[1] ) != 0 ) {
183 if ((dironly && !(st.st_mode & S_IFDIR)) ||
184 (!dironly && (st.st_mode & S_IFDIR)))
217 int main(
int argc,
char **argv ) {
221 for (
int i = 1 ;
i < argc ;
i++ ) {
222 strcat( cmdline, argv[
i] );
223 if ( i < argc - 1 ) {
224 strcat( cmdline,
" " );
void Sys_DoPreferences(void)
static int snPrintf(char *dest, int size, const char *fmt,...) id_attribute((format(printf
void InitBaseClockTicks(void) const
void Sys_DestroyThread(xthreadInfo &info)
GLenum GLsizei GLenum format
int Sys_ListFiles(const char *directory, const char *extension, idStrList &list)
int Sys_Milliseconds(void)
void Sys_FlushCacheMemory(void *base, int bytes)
GLuint GLuint GLsizei GLenum type
virtual void Async(void)=0
void Sys_GenerateEvents(void)
int Icmp(const char *text) const
virtual void Frame(void)=0
bool GetPacket(netadr_t &from, void *data, int &size, int maxSize)
char * Sys_GetClipboardData(void)
const char * Sys_DefaultCDPath(void)
int main(int argc, char **argv)
void SendPacket(const netadr_t to, const void *data, int size)
void Sys_ShutdownInput(void)
GLsizei GLsizei GLenum GLenum const GLvoid * data
const char * Sys_DefaultBasePath(void)
void Sys_Mkdir(const char *path)
unsigned int(* xthread_t)(void *)
GLubyte GLubyte GLubyte a
void Sys_Error(const char *error,...)
GLenum GLsizei GLsizei height
GLint GLint GLsizei GLsizei GLsizei GLint border
int Append(const type &obj)
const char * Sys_NetAdrToString(const netadr_t a)
void Sys_CreateThread(xthread_t function, void *parms, xthreadPriority priority, xthreadInfo &info)
sysEvent_t Sys_GetEvent(void)
void Sys_InitNetworking(void)
void ExtractFileExtension(idStr &dest) const
GLint GLint GLsizei GLsizei GLsizei GLint GLenum GLenum const GLvoid * pixels
void _glTexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLint border, GLenum format, GLenum type, const GLvoid *pixels)
bool Sys_StringToNetAdr(const char *s, netadr_t *a)
virtual void Init(int argc, const char **argv, const char *cmdline)=0
double Sys_GetClockTicks(void)
double Sys_ClockTicksPerSecond(void)
void Sys_GrabMouseCursor(bool grabIt)