- Remove 255 character length restriction on lump names.

- Removed directory checking for big endian wads since the header check should be sufficient.

SVN r3899 (trunk)
This commit is contained in:
Braden Obrzut 2012-10-22 21:58:52 +00:00
commit cd2c1f6816
4 changed files with 28 additions and 63 deletions

View file

@ -271,7 +271,6 @@ bool F7ZFile::Open(bool quiet)
for (DWORD i = 0; i < NumLumps; ++i)
{
CSzFileItem *file = &Archive->DB.db.Files[i];
char name[256];
// skip Directories
if (file->IsDir)
@ -280,10 +279,9 @@ bool F7ZFile::Open(bool quiet)
continue;
}
strncpy(name, file->Name, countof(name)-1);
name[countof(name)-1] = 0;
FString name = file->Name;
FixPathSeperator(name);
strlwr(name);
name.ToLower();
lump_p->LumpNameSetup(name);
lump_p->LumpSize = int(file->Size);