mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
Convert "lump" names from directories to lowercase
- Zip and 7z already do this. Directories should too.
This commit is contained in:
parent
44a6cafd4b
commit
a16f92c508
1 changed files with 6 additions and 1 deletions
|
@ -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.
|
// 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;
|
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
|
// 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->LumpSize = size;
|
||||||
lump_p->Owner = this;
|
lump_p->Owner = this;
|
||||||
lump_p->Flags = 0;
|
lump_p->Flags = 0;
|
||||||
|
|
Loading…
Reference in a new issue