From 3a57036f60588a50cc8ff1d2f6d614ab9f4c9b2b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 5 Feb 2016 11:20:32 +0100 Subject: [PATCH] - a simple command line parameter is probably more suitsble for controlling the disassembly output. --- src/thingdef/thingdef.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thingdef/thingdef.cpp b/src/thingdef/thingdef.cpp index 6707ccfef..2d179e01d 100644 --- a/src/thingdef/thingdef.cpp +++ b/src/thingdef/thingdef.cpp @@ -54,6 +54,7 @@ #include "decallib.h" #include "m_random.h" #include "i_system.h" +#include "m_argv.h" #include "p_local.h" #include "doomerrors.h" #include "a_hexenglobal.h" @@ -262,7 +263,6 @@ void FinishActor(const FScriptPosition &sc, PClassActor *info, Baggage &bag) // Do some postprocessing after everything has been defined // //========================================================================== -CVAR(Bool, dumpdisassembly, false, 0); static void DumpFunction(FILE *dump, VMScriptFunction *sfunc, const char *label, int labellen) { @@ -282,7 +282,7 @@ static void FinishThingdef() int codesize = 0; FILE *dump = NULL; - if (dumpdisassembly) dump = fopen("disasm.txt", "w"); + if (Args->CheckParm("-dumpdisasm")) dump = fopen("disasm.txt", "w"); for (i = 0; i < StateTempCalls.Size(); ++i) {