mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
move Sys_DebugLog
This commit is contained in:
parent
e8026d9c76
commit
fc0bb7e175
9 changed files with 15 additions and 103 deletions
|
@ -414,3 +414,18 @@ Sys_PageIn (void *ptr, int size)
|
||||||
}
|
}
|
||||||
//#endif
|
//#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
Sys_DebugLog (const char *file, const char *fmt, ...)
|
||||||
|
{
|
||||||
|
va_list argptr;
|
||||||
|
static char data[1024]; // why static ?
|
||||||
|
int fd;
|
||||||
|
|
||||||
|
va_start (argptr, fmt);
|
||||||
|
vsnprintf (data, sizeof (data), fmt, argptr);
|
||||||
|
va_end (argptr);
|
||||||
|
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
||||||
|
write (fd, data, strlen (data));
|
||||||
|
close (fd);
|
||||||
|
}
|
||||||
|
|
|
@ -118,21 +118,6 @@ shutdown (void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
int fd;
|
|
||||||
static char data[1024]; // why static ?
|
|
||||||
va_list argptr;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
};
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Sys_ConsoleInput
|
Sys_ConsoleInput
|
||||||
|
|
||||||
|
|
|
@ -78,22 +78,6 @@ shutdown (void)
|
||||||
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
|
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~O_NONBLOCK);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list argptr;
|
|
||||||
static char data[1024];
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
floating_point_exception_handler (int whatever)
|
floating_point_exception_handler (int whatever)
|
||||||
{
|
{
|
||||||
|
|
|
@ -69,22 +69,6 @@ qboolean isDedicated = true;
|
||||||
|
|
||||||
int nostdout = 0;
|
int nostdout = 0;
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list argptr;
|
|
||||||
static char data[1024];
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
shutdown (void)
|
shutdown (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -181,11 +181,6 @@ shutdown (void)
|
||||||
DeinitConProc ();
|
DeinitConProc ();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
const char *
|
const char *
|
||||||
Sys_ConsoleInput (void)
|
Sys_ConsoleInput (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -56,11 +56,6 @@ VFile *sys_handles[MAX_HANDLES];
|
||||||
|
|
||||||
// SYSTEM IO ==================================================================
|
// SYSTEM IO ==================================================================
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (char *file, char *fmt, ...)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
IN_SendKeyEvents (void)
|
IN_SendKeyEvents (void)
|
||||||
{
|
{
|
||||||
|
|
|
@ -115,21 +115,6 @@ shutdown (void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
int fd;
|
|
||||||
static char data[1024]; // why static ?
|
|
||||||
va_list argptr;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
};
|
|
||||||
|
|
||||||
#ifndef USE_INTEL_ASM
|
#ifndef USE_INTEL_ASM
|
||||||
void
|
void
|
||||||
Sys_HighFPPrecision (void)
|
Sys_HighFPPrecision (void)
|
||||||
|
|
|
@ -90,22 +90,6 @@ Sys_Warn (char *warning, ...)
|
||||||
fprintf (stderr, "Warning: %s", string);
|
fprintf (stderr, "Warning: %s", string);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
va_list argptr;
|
|
||||||
static char data[1024]; // why static ?
|
|
||||||
int fd;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
// fd = open(file, O_WRONLY | O_BINARY | O_CREAT | O_APPEND, 0666);
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
floating_point_exception_handler (int whatever)
|
floating_point_exception_handler (int whatever)
|
||||||
{
|
{
|
||||||
|
|
|
@ -139,21 +139,6 @@ shutdown (void)
|
||||||
CloseHandle (qwclsemaphore);
|
CloseHandle (qwclsemaphore);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Sys_DebugLog (const char *file, const char *fmt, ...)
|
|
||||||
{
|
|
||||||
static char data[1024];
|
|
||||||
int fd;
|
|
||||||
va_list argptr;
|
|
||||||
|
|
||||||
va_start (argptr, fmt);
|
|
||||||
vsnprintf (data, sizeof (data), fmt, argptr);
|
|
||||||
va_end (argptr);
|
|
||||||
fd = open (file, O_WRONLY | O_CREAT | O_APPEND, 0666);
|
|
||||||
write (fd, data, strlen (data));
|
|
||||||
close (fd);
|
|
||||||
};
|
|
||||||
|
|
||||||
void
|
void
|
||||||
SleepUntilInput (int time)
|
SleepUntilInput (int time)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue