- 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:
Randy Heit 2006-05-03 22:45:01 +00:00
commit ea3b76815d
45 changed files with 526 additions and 410 deletions

View file

@ -128,7 +128,7 @@ void FConfigFile::ClearConfig ()
LastSectionPtr = &Sections;
}
void FConfigFile::ChangePathName (const string &pathname)
void FConfigFile::ChangePathName (const char *pathname)
{
PathName = pathname;
}
@ -306,7 +306,7 @@ FConfigFile::FConfigEntry *FConfigFile::NewConfigEntry (
void FConfigFile::LoadConfigFile (void (*nosechandler)(const char *pathname, FConfigFile *config, void *userdata), void *userdata)
{
FILE *file = fopen (PathName.GetChars(), "r");
FILE *file = fopen (PathName, "r");
bool succ;
if (file == NULL)
@ -319,7 +319,7 @@ void FConfigFile::LoadConfigFile (void (*nosechandler)(const char *pathname, FCo
{ // First valid line did not define a section
if (nosechandler != NULL)
{
nosechandler (PathName.GetChars(), this, userdata);
nosechandler (PathName, this, userdata);
}
}
}
@ -399,7 +399,7 @@ char *FConfigFile::ReadLine (char *string, int n, void *file) const
void FConfigFile::WriteConfigFile () const
{
FILE *file = fopen (PathName.GetChars(), "w");
FILE *file = fopen (PathName, "w");
FConfigSection *section;
FConfigEntry *entry;