mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-11 07:11:54 +00:00
- use different names for different AST dumps.
This commit is contained in:
parent
7068070c0d
commit
07c24c7e27
1 changed files with 4 additions and 4 deletions
|
@ -369,10 +369,10 @@ static void DoParse(int lumpnum)
|
|||
if (Args->CheckParm("-dumpast"))
|
||||
{
|
||||
FString ast = ZCC_PrintAST(state.TopNode);
|
||||
FString filename = Wads.GetLumpFullName(lumpnum);
|
||||
FString astfile = ExtractFileBase(filename, false);
|
||||
astfile << ".ast";
|
||||
FILE *ff = fopen(astfile, "w");
|
||||
FString filename = Wads.GetLumpFullPath(lumpnum);
|
||||
filename.ReplaceChars(":\\/?|", '.');
|
||||
filename << ".ast";
|
||||
FILE *ff = fopen(filename, "w");
|
||||
if (ff != NULL)
|
||||
{
|
||||
fputs(ast.GetChars(), ff);
|
||||
|
|
Loading…
Reference in a new issue