#include "thread.h"
#include "libcurl.h"
+sys_t sys;
+
static char sys_timestring[128];
char *Sys_TimeString(const char *timeformat)
{
}
if(sys_debugsleep.integer)
- Sys_Printf("sys_debugsleep: requesting %u ", microseconds);
+ Con_Printf("sys_debugsleep: requesting %u ", microseconds);
dt = Sys_DirtyTime();
// less important on newer libcurl so no need to disturb dedicated servers
dt = Sys_DirtyTime() - dt;
if(sys_debugsleep.integer)
- Sys_Printf(" got %u oversleep %d\n", (unsigned int)(dt * 1000000), (unsigned int)(dt * 1000000) - microseconds);
+ Con_Printf(" got %u oversleep %d\n", (unsigned int)(dt * 1000000), (unsigned int)(dt * 1000000) - microseconds);
return (dt < 0 || dt >= 1800) ? 0 : dt;
}
+
+/*
+===============================================================================
+
+STDIO
+
+===============================================================================
+*/
+
void Sys_Print(const char *text)
{
#ifdef __ANDROID__
#endif
}
+/// for the console to report failures inside Con_Printf()
void Sys_Printf(const char *fmt, ...)
{
va_list argptr;
Sys_Print(msg);
}
+/// Reads a line from POSIX stdin or the Windows console
char *Sys_ConsoleInput(void)
{
static char text[MAX_INPUTLINE];
}
+/*
+===============================================================================
+
+Startup and Shutdown
+
+===============================================================================
+*/
+
void Sys_Error (const char *error, ...)
{
va_list argptr;