- Removed -bpal parameter. Blood's blood.pal is loaded from blood.rff, and
its tiles are loaded from the same directory. - RFF files now load their entire directories into the lumplist. - Added char * and const char * type coversions for FString, so FStrings can be freely passed to functions expecting C strings. (Except varargs functions, which still require manually fetching the C string out of it.) - Renamed the name class to FName. - Renamed the string class to FString to emphasize that it is not std::string. SVN r74 (trunk)
This commit is contained in:
parent
0e69196370
commit
ea3b76815d
45 changed files with 526 additions and 410 deletions
12
src/name.cpp
12
src/name.cpp
|
|
@ -10,16 +10,16 @@ static const char *PredefinedNames[] =
|
|||
#undef xx
|
||||
};
|
||||
|
||||
int name::Buckets[name::HASH_SIZE];
|
||||
TArray<name::MainName> name::NameArray;
|
||||
bool name::Inited;
|
||||
int FName::Buckets[FName::HASH_SIZE];
|
||||
TArray<FName::MainName> FName::NameArray;
|
||||
bool FName::Inited;
|
||||
|
||||
name::MainName::MainName (int next)
|
||||
FName::MainName::MainName (int next)
|
||||
: NextHash(next)
|
||||
{
|
||||
}
|
||||
|
||||
int name::FindName (const char *text, bool noCreate)
|
||||
int FName::FindName (const char *text, bool noCreate)
|
||||
{
|
||||
if (!Inited) InitBuckets ();
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ int name::FindName (const char *text, bool noCreate)
|
|||
return index;
|
||||
}
|
||||
|
||||
void name::InitBuckets ()
|
||||
void FName::InitBuckets ()
|
||||
{
|
||||
size_t i;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue