diff options
author | Simon Howard | 2006-12-22 15:22:40 +0000 |
---|---|---|
committer | Simon Howard | 2006-12-22 15:22:40 +0000 |
commit | 4df4383d18115a25c13c4d132de01428330b5a5d (patch) | |
tree | df733516400040744860c30079e0475dd865e347 /src/doomtype.h | |
parent | eaa92320c8b89b41bfc3c296f1a23ec74fe2abc0 (diff) | |
download | chocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.tar.gz chocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.tar.bz2 chocolate-doom-4df4383d18115a25c13c4d132de01428330b5a5d.zip |
Add definitions for PATH and directory separators.
Allow multiple directories to be specified in DOOMWADDIR, in the same
way as PATH.
Make -iwad search through all search paths for the specified IWAD.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 799
Diffstat (limited to 'src/doomtype.h')
-rw-r--r-- | src/doomtype.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/doomtype.h b/src/doomtype.h index 4dbed9e6..5b2faf38 100644 --- a/src/doomtype.h +++ b/src/doomtype.h @@ -59,5 +59,17 @@ typedef uint8_t byte; #include <limits.h> +#ifdef _WIN32 + +#define DIR_SEPARATOR '\\' +#define PATH_SEPARATOR ';' + +#else + +#define DIR_SEPARATOR '/' +#define PATH_SEPARATOR ':' + +#endif + #endif |