From 51b138b026f528e53081b73dd8d4c15e5eb85e36 Mon Sep 17 00:00:00 2001 From: Fabian Greffrath Date: Thu, 16 Jan 2020 10:30:30 +0100 Subject: [PATCH] remove length check from ExtractFileBase() This allows us to load demos with filenames longer than 8 characters. --- Source/w_wad.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/w_wad.c b/Source/w_wad.c index df1a82a6..2dc04d60 100644 --- a/Source/w_wad.c +++ b/Source/w_wad.c @@ -67,7 +67,11 @@ void ExtractFileBase(const char *path, char *dest) while (*src && *src != '.') if (++length == 9) - I_Error ("Filename base of %s >8 chars",path); + { + // [FG] remove length check + printf ("Filename base of %s >8 chars",path); + break; + } else *dest++ = toupper(*src++); }