mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 14:51:46 +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);
|
FString filename = Wads.GetLumpFullPath(lumpnum);
|
||||||
filename.ReplaceChars(":\\/?|", '.');
|
filename.ReplaceChars(":\\/?|", '.');
|
||||||
filename << ".ast";
|
filename << ".ast";
|
||||||
FILE *ff = fopen(filename, "w");
|
FileWriter *ff = FileWriter::Open(filename);
|
||||||
if (ff != NULL)
|
if (ff != NULL)
|
||||||
{
|
{
|
||||||
fputs(ast.GetChars(), ff);
|
ff->Write(ast.GetChars(), ast.Len());
|
||||||
fclose(ff);
|
delete ff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue