- use a string pool to store the filenames in FResourceLump.

This commit is contained in:
Christoph Oelckers 2023-08-22 00:56:31 +02:00
commit 3d673e3f20
17 changed files with 137 additions and 119 deletions

View file

@ -120,7 +120,7 @@ void *StringPool::iAlloc(size_t size)
const char* StringPool::Strdup(const char* str)
{
char* p = (char*)iAlloc((strlen(str) + 15) & ~15 );
char* p = (char*)iAlloc((strlen(str) + 8) & ~7 );
strcpy(p, str);
return p;
}