// =======================================================================
// General routines
// =======================================================================
-
-void Sys_Quit (void)
+void Sys_Shutdown (void)
{
- Host_Shutdown();
#ifndef WIN32
fcntl (0, F_SETFL, fcntl (0, F_GETFL, 0) & ~FNDELAY);
#endif
fflush(stdout);
- exit(0);
}
void Sys_Error (const char *error, ...)
va_end (argptr);
fprintf(stderr, "Error: %s\n", string);
+ Con_Print ("Quake Error: ");
+ Con_Print (string);
+ Con_Print ("\n");
+
Host_Shutdown ();
exit (1);
}
#endif
}
-int main (int argc, const char **argv)
+char *Sys_GetClipboardData (void)
+{
+ return NULL;
+}
+
+int main (int argc, char **argv)
{
double frameoldtime, framenewtime;
signal(SIGFPE, SIG_IGN);
com_argc = argc;
- com_argv = argv;
+ com_argv = (const char **)argv;
#ifndef WIN32
fcntl(0, F_SETFL, fcntl (0, F_GETFL, 0) | FNDELAY);