- use a string pool to store the filenames in FResourceLump.
This commit is contained in:
parent
4f8305de5f
commit
3d673e3f20
17 changed files with 137 additions and 119 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue