- a simple command line parameter is probably more suitsble for controlling the disassembly output.

This commit is contained in:
Christoph Oelckers 2016-02-05 11:20:32 +01:00
parent 312117b0bc
commit 3a57036f60

View file

@ -54,6 +54,7 @@
#include "decallib.h" #include "decallib.h"
#include "m_random.h" #include "m_random.h"
#include "i_system.h" #include "i_system.h"
#include "m_argv.h"
#include "p_local.h" #include "p_local.h"
#include "doomerrors.h" #include "doomerrors.h"
#include "a_hexenglobal.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 // 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)
{ {
@ -282,7 +282,7 @@ static void FinishThingdef()
int codesize = 0; int codesize = 0;
FILE *dump = NULL; 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) for (i = 0; i < StateTempCalls.Size(); ++i)
{ {