From 4df4383d18115a25c13c4d132de01428330b5a5d Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 22 Dec 2006 15:22:40 +0000 Subject: 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 --- src/doomtype.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/doomtype.h') 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 +#ifdef _WIN32 + +#define DIR_SEPARATOR '\\' +#define PATH_SEPARATOR ';' + +#else + +#define DIR_SEPARATOR '/' +#define PATH_SEPARATOR ':' + +#endif + #endif -- cgit v1.2.3