11,7 → 11,6 |
#include <string.h> |
#include <ctype.h> |
#include <errno.h> |
#include <kos32sys.h> |
#if !defined(__WIN32__) && !defined(_KOLIBRI) |
#include <sys/ipc.h> |
#include <sys/shm.h> |
47,8 → 46,11 |
va_start (argptr,fmt); |
vsprintf (text,fmt,argptr); |
va_end (argptr); |
|
#ifdef _KOLIBRI |
__menuet__debug_out(text); |
#else |
fprintf(stderr, "%s", text); |
#endif |
|
//Con_Print (text); |
} |
100,11 → 102,17 |
va_start (argptr,error); |
vsprintf (string,error,argptr); |
va_end (argptr); |
|
#ifdef _KOLIBRI |
__menuet__debug_out("Error: "); |
__menuet__debug_out(string); |
__menuet__debug_out("\n"); |
#else |
fprintf(stderr, "Error: %s\n", string); |
#endif |
|
Host_Shutdown (); |
exit (1); |
|
} |
|
void Sys_Warn (char *warning, ...) |
115,8 → 123,12 |
va_start (argptr,warning); |
vsprintf (string,warning,argptr); |
va_end (argptr); |
|
#ifdef _KOLIBRI |
__menuet__debug_out("Warning: "); |
__menuet__debug_out(string); |
#else |
fprintf(stderr, "Warning: %s", string); |
#endif |
} |
|
/* |
270,7 → 282,7 |
#ifdef __WIN32__ |
mkdir (path); |
#else |
//mkdir (path, 0777); |
mkdir (path, 0777); |
#endif |
} |
|
364,7 → 376,7 |
void Sys_Sleep(void) |
{ |
#ifdef _KOLIBRI |
delay(1); |
__menuet__delay100(1); |
#else |
SDL_Delay(1); |
#endif |
425,7 → 437,7 |
if (time < sys_ticrate.value && (vcrFile == -1 || recording) ) |
{ |
#ifdef _KOLIBRI |
delay(1); |
__menuet__delay100(1); |
#else |
SDL_Delay (1); |
#endif |