From a16f92c508d3b19d9c540a5d11356d9518e60538 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Tue, 1 Mar 2016 08:47:51 -0600 Subject: [PATCH] Convert "lump" names from directories to lowercase - Zip and 7z already do this. Directories should too. --- src/resourcefiles/file_directory.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/resourcefiles/file_directory.cpp b/src/resourcefiles/file_directory.cpp index 8b85425f1..068ea508a 100644 --- a/src/resourcefiles/file_directory.cpp +++ b/src/resourcefiles/file_directory.cpp @@ -302,8 +302,13 @@ void FDirectory::AddEntry(const char *fullpath, int size) // Store the full path here so that we can access the file later, even if it is from a filter directory. lump_p->mFullPath = fullpath; + + // [mxd] Convert name to lowercase + FString name = fullpath + strlen(Filename); + name.ToLower(); + // The lump's name is only the part relative to the main directory - lump_p->LumpNameSetup(fullpath + strlen(Filename)); + lump_p->LumpNameSetup(name); lump_p->LumpSize = size; lump_p->Owner = this; lump_p->Flags = 0;