- disable script disassembly output by default. It's now controlled by a CVAR.

This commit is contained in:
Christoph Oelckers 2016-02-05 10:56:15 +01:00
parent 353608f2b9
commit 312117b0bc

View file

@ -262,6 +262,7 @@ void FinishActor(const FScriptPosition &sc, PClassActor *info, Baggage &bag)
// Do some postprocessing after everything has been defined // 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) static void DumpFunction(FILE *dump, VMScriptFunction *sfunc, const char *label, int labellen)
{ {
@ -279,12 +280,10 @@ static void FinishThingdef()
int errorcount = 0; int errorcount = 0;
unsigned i; unsigned i;
int codesize = 0; int codesize = 0;
#if 1
FILE *dump = fopen("disasm.txt", "w");
#else
FILE *dump = NULL; FILE *dump = NULL;
#endif
if (dumpdisassembly) dump = fopen("disasm.txt", "w");
for (i = 0; i < StateTempCalls.Size(); ++i) for (i = 0; i < StateTempCalls.Size(); ++i)
{ {
FStateTempCall *tcall = StateTempCalls[i]; FStateTempCall *tcall = StateTempCalls[i];