mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- use FileWriter for the AST dump.
This commit is contained in:
parent
5e7dfa7cce
commit
ab58e4acb0
1 changed files with 3 additions and 3 deletions
|
@ -462,11 +462,11 @@ static void DoParse(int lumpnum)
|
|||
FString filename = Wads.GetLumpFullPath(lumpnum);
|
||||
filename.ReplaceChars(":\\/?|", '.');
|
||||
filename << ".ast";
|
||||
FILE *ff = fopen(filename, "w");
|
||||
FileWriter *ff = FileWriter::Open(filename);
|
||||
if (ff != NULL)
|
||||
{
|
||||
fputs(ast.GetChars(), ff);
|
||||
fclose(ff);
|
||||
ff->Write(ast.GetChars(), ast.Len());
|
||||
delete ff;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue