Rev 11 | Rev 18 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 11 | Rev 14 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | #include "include/harness/config.h" |
4 | #include "include/harness/config.h" |
| 5 | #include "include/harness/hooks.h" |
5 | #include "include/harness/hooks.h" |
| 6 | #include "include/harness/os.h" |
6 | #include "include/harness/os.h" |
| 7 | #include "platforms/null.h" |
7 | #include "platforms/null.h" |
| 8 | #include "sound/sound.h" |
8 | #include "sound/sound.h" |
| 9 | //#include "version.h" |
9 | //#include "version.h" // Pierre-Marie Baty -- our port doesn't need that (though it's actually based on dethrace-0.7.1) |
| 10 | 10 | ||
| 11 | #include <errno.h> |
11 | #include <errno.h> |
| 12 | #include <stdio.h> |
12 | #include <stdio.h> |
| 13 | #include <string.h> |
13 | #include <string.h> |
| 14 | #include <sys/stat.h> |
14 | #include <sys/stat.h> |
| Line 140... | Line 140... | ||
| 140 | #include <pwd.h> // for struct passwd and getpwuid() |
140 | #include <pwd.h> // for struct passwd and getpwuid() |
| 141 | #endif /* __APPLE__ */ |
141 | #endif /* __APPLE__ */ |
| 142 | void Harness_Init(int* argc, char* argv[]) { |
142 | void Harness_Init(int* argc, char* argv[]) { |
| 143 | int result; |
143 | int result; |
| 144 | #ifndef DETHRACE_VERSION |
144 | #ifndef DETHRACE_VERSION |
| 145 | #define DETHRACE_VERSION "0. |
145 | #define DETHRACE_VERSION "0.7.1-pmbaty" // Pierre-Marie Baty -- CMake fix |
| 146 | #endif // !DETHRACE_VERSION |
146 | #endif // !DETHRACE_VERSION |
| 147 | printf("Dethrace version: %s\n", DETHRACE_VERSION); |
147 | printf("Dethrace version: %s\n", DETHRACE_VERSION); |
| 148 | 148 | ||
| 149 | memset(&harness_game_info, 0, sizeof(harness_game_info)); |
149 | memset(&harness_game_info, 0, sizeof(harness_game_info)); |
| 150 | 150 | ||