summaryrefslogtreecommitdiff
path: root/src/doom/d_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r--src/doom/d_main.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doom/d_main.c b/src/doom/d_main.c
index e59802dd..ddc0c7f7 100644
--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -78,6 +78,7 @@
#include "p_setup.h"
#include "r_local.h"
+#include "statdump.h"
#include "d_main.h"
@@ -1546,6 +1547,12 @@ void D_DoomMain (void)
if (gamemode == commercial && W_CheckNumForName("map01") < 0)
storedemo = true;
+ if (M_CheckParmWithArgs("-statdump", 1))
+ {
+ I_AtExit(StatDump, true);
+ DEH_printf("External statistics registered.\n");
+ }
+
//!
// @arg <x>
// @category demo