- Added a dialog that gives the user the chance to fix things if the config

could not be saved for some reason.
- Added the writeini console command to write the config file, optionally
  specifying a specific file name for it.
- Fixed: "Multiplayer" demos that only had one player were not played back
  properly because the demo playback code only checked the number of players
  to determine if it should be played as a netdemo.


SVN r333 (trunk)
This commit is contained in:
Randy Heit 2006-09-20 02:00:19 +00:00
commit b132575533
12 changed files with 98 additions and 8 deletions

View file

@ -398,14 +398,14 @@ char *FConfigFile::ReadLine (char *string, int n, void *file) const
return fgets (string, n, (FILE *)file);
}
void FConfigFile::WriteConfigFile () const
bool FConfigFile::WriteConfigFile () const
{
FILE *file = fopen (PathName, "w");
FConfigSection *section;
FConfigEntry *entry;
if (file == NULL)
return;
return false;
WriteCommentHeader (file);
@ -423,6 +423,7 @@ void FConfigFile::WriteConfigFile () const
fprintf (file, "\n");
}
fclose (file);
return true;
}
void FConfigFile::WriteCommentHeader (FILE *file) const