From 589f580133853005dc176e19ec4923e9aaab42dc Mon Sep 17 00:00:00 2001 From: Bradley Bell Date: Sat, 17 Jul 2021 20:33:51 -0700 Subject: [PATCH] ignore case in level filename --- main/gamesave.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main/gamesave.c b/main/gamesave.c index 33b95881..0029400c 100644 --- a/main/gamesave.c +++ b/main/gamesave.c @@ -36,6 +36,7 @@ COPYRIGHT 1993-1999 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "cfile.h" #include "byteswap.h" #include "makesig.h" +#include "ignorecase.h" char Gamesave_current_filename[PATH_MAX]; @@ -1204,6 +1205,8 @@ int load_level(const char * filename_passed) strcpy(filename,filename_passed); + PHYSFSEXT_locateCorrectCase(filename); + #ifdef EDITOR //if we have the editor, try the LVL first, no matter what was passed. //if we don't have an LVL, try what was passed or RL2 -- 2.39.2