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/w_wad.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/w_wad.c') diff --git a/src/w_wad.c b/src/w_wad.c index 397ec457..0e438140 100644 --- a/src/w_wad.c +++ b/src/w_wad.c @@ -79,9 +79,7 @@ static void ExtractFileBase(char *path, char *dest) src = path + strlen(path) - 1; // back up until a \ or the start - while (src != path - && *(src-1) != '\\' - && *(src-1) != '/') + while (src != path && *(src - 1) != DIR_SEPARATOR) { src--; } -- cgit v1.2.3