equal
deleted
inserted
replaced
32 |
32 |
33 static void *_dedicated_video_mem; |
33 static void *_dedicated_video_mem; |
34 |
34 |
35 #ifdef UNIX |
35 #ifdef UNIX |
36 /* We want to fork our dedicated server */ |
36 /* We want to fork our dedicated server */ |
37 void DedicatedFork() |
37 void DedicatedFork(void) |
38 { |
38 { |
39 /* Fork the program */ |
39 /* Fork the program */ |
40 _dedicated_pid = fork(); |
40 _dedicated_pid = fork(); |
41 switch (_dedicated_pid) { |
41 switch (_dedicated_pid) { |
42 case -1: |
42 case -1: |
240 DEBUG(misc,0)("OpenTTD compiled without network-support, quiting..."); |
240 DEBUG(misc,0)("OpenTTD compiled without network-support, quiting..."); |
241 |
241 |
242 return NULL; |
242 return NULL; |
243 } |
243 } |
244 |
244 |
|
245 void DedicatedFork(void) {} |
245 static void DedicatedVideoStop() { free(_dedicated_video_mem); } |
246 static void DedicatedVideoStop() { free(_dedicated_video_mem); } |
246 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {} |
247 static void DedicatedVideoMakeDirty(int left, int top, int width, int height) {} |
247 static bool DedicatedVideoChangeRes(int w, int h) { return false; } |
248 static bool DedicatedVideoChangeRes(int w, int h) { return false; } |
248 static int DedicatedVideoMainLoop() { return ML_QUIT; } |
249 static int DedicatedVideoMainLoop() { return ML_QUIT; } |
249 |
250 |