mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 06:53:40 +00:00
- disable script disassembly output by default. It's now controlled by a CVAR.
This commit is contained in:
parent
353608f2b9
commit
312117b0bc
1 changed files with 4 additions and 5 deletions
|
@ -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];
|
||||||
|
|
Loading…
Reference in a new issue