- 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:
parent
8854f95152
commit
b132575533
12 changed files with 98 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue