sys_null.c 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. // sys_null.h -- null system driver to aid porting efforts
  2. #include "../qcommon/qcommon.h"
  3. #include "errno.h"
  4. int curtime;
  5. unsigned sys_frame_time;
  6. void Sys_mkdir (char *path)
  7. {
  8. }
  9. void Sys_Error (char *error, ...)
  10. {
  11. va_list argptr;
  12. printf ("Sys_Error: ");
  13. va_start (argptr,error);
  14. vprintf (error,argptr);
  15. va_end (argptr);
  16. printf ("\n");
  17. exit (1);
  18. }
  19. void Sys_Quit (void)
  20. {
  21. exit (0);
  22. }
  23. void Sys_UnloadGame (void)
  24. {
  25. }
  26. void *Sys_GetGameAPI (void *parms)
  27. {
  28. return NULL;
  29. }
  30. char *Sys_ConsoleInput (void)
  31. {
  32. return NULL;
  33. }
  34. void Sys_ConsoleOutput (char *string)
  35. {
  36. }
  37. void Sys_SendKeyEvents (void)
  38. {
  39. }
  40. void Sys_AppActivate (void)
  41. {
  42. }
  43. void Sys_CopyProtect (void)
  44. {
  45. }
  46. char *Sys_GetClipboardData( void )
  47. {
  48. return NULL;
  49. }
  50. void *Hunk_Begin (int maxsize)
  51. {
  52. return NULL;
  53. }
  54. void *Hunk_Alloc (int size)
  55. {
  56. return NULL;
  57. }
  58. void Hunk_Free (void *buf)
  59. {
  60. }
  61. int Hunk_End (void)
  62. {
  63. return 0;
  64. }
  65. int Sys_Milliseconds (void)
  66. {
  67. return 0;
  68. }
  69. void Sys_Mkdir (char *path)
  70. {
  71. }
  72. char *Sys_FindFirst (char *path, unsigned musthave, unsigned canthave)
  73. {
  74. return NULL;
  75. }
  76. char *Sys_FindNext (unsigned musthave, unsigned canthave)
  77. {
  78. return NULL;
  79. }
  80. void Sys_FindClose (void)
  81. {
  82. }
  83. void Sys_Init (void)
  84. {
  85. }
  86. //=============================================================================
  87. void main (int argc, char **argv)
  88. {
  89. Qcommon_Init (argc, argv);
  90. while (1)
  91. {
  92. Qcommon_Frame (0.1);
  93. }
  94. }