ref: b8db918b1d45aa8124a4953305edba550a52db6e
parent: 89187a00f3871ae48564cd34057635519f8028e2
author: Simon Howard <fraggle@gmail.com>
date: Tue Nov 30 15:44:20 EST 2010
Remove "-debugfile" command line option and associated variable. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2179
--- a/src/d_main.c
+++ b/src/d_main.c
@@ -124,8 +124,6 @@
boolean autostart;
int startloadgame;
-FILE* debugfile;
-
boolean advancedemo;
// Store demo, do not accept any inputs
@@ -399,14 +397,6 @@
if (demorecording)
G_BeginRecording ();
- if (M_CheckParm ("-debugfile"))
- {
- char filename[20];
- sprintf (filename,"debug%i.txt",consoleplayer);
- printf ("debug output to: %s\n",filename);
- debugfile = fopen (filename,"w");
- }
-
TryRunTics();
I_InitGraphics ();
--- a/src/d_net.c
+++ b/src/d_net.c
@@ -405,9 +405,6 @@
//
void D_QuitNetGame (void)
{
- if (debugfile)
- fclose (debugfile);
-
#ifdef FEATURE_MULTIPLAYER
NET_SV_Shutdown();
--- a/src/doomstat.h
+++ b/src/doomstat.h
@@ -258,7 +258,6 @@
// File handling stuff.
extern char * savegamedir;
extern char basedefault[1024];
-extern FILE* debugfile;
// if true, load all graphics at level load
extern boolean precache;
--- a/src/p_setup.c
+++ b/src/p_setup.c
@@ -755,17 +755,7 @@
// Make sure all sounds are stopped before Z_FreeTags.
S_Start ();
-
-#if 0 // UNUSED
- if (debugfile)
- {
- Z_FreeTags (PU_LEVEL, INT_MAX);
- Z_FileDumpHeap (debugfile);
- }
- else
-#endif
- Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);
-
+ Z_FreeTags (PU_LEVEL, PU_PURGELEVEL-1);
// UNUSED W_Profile ();
P_InitThinkers ();