From 312117b0bc76e349c416e619f24d4defe69a510b Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 5 Feb 2016 10:56:15 +0100 Subject: [PATCH] - disable script disassembly output by default. It's now controlled by a CVAR. --- src/thingdef/thingdef.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/thingdef/thingdef.cpp b/src/thingdef/thingdef.cpp index c0097a053..6707ccfef 100644 --- a/src/thingdef/thingdef.cpp +++ b/src/thingdef/thingdef.cpp @@ -262,6 +262,7 @@ 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) { @@ -279,12 +280,10 @@ static void FinishThingdef() int errorcount = 0; unsigned i; int codesize = 0; - -#if 1 - FILE *dump = fopen("disasm.txt", "w"); -#else FILE *dump = NULL; -#endif + + if (dumpdisassembly) dump = fopen("disasm.txt", "w"); + for (i = 0; i < StateTempCalls.Size(); ++i) { FStateTempCall *tcall = StateTempCalls[i];