convert WAD file names to lower case in GetAutoloadDir()

This commit is contained in:
Fabian Greffrath 2022-02-22 14:56:14 +01:00
parent b3dc68f04c
commit d16bd5869b

View File

@ -694,8 +694,12 @@ static char **autoload_paths = NULL;
static char *GetAutoloadDir(const char *base, const char *iwadname, boolean createdir)
{
char *result;
char *lower;
result = M_StringJoin(base, DIR_SEPARATOR_S, iwadname, NULL);
lower = M_StringDuplicate(iwadname);
M_ForceLowercase(lower);
result = M_StringJoin(base, DIR_SEPARATOR_S, lower, NULL);
(free)(lower);
if (createdir)
{