From 48e858988f16109b81ce1c3b3e4d63c3565f25b3 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Fri, 21 Oct 2011 20:03:31 +0000 Subject: Add -statdump command line parameter, to generate the same output as statdump.exe does with Vanilla Doom. Subversion-branch: /branches/v2-branch Subversion-revision: 2450 --- src/doom/d_main.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/doom/d_main.c') 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 // @category demo -- cgit v1.2.3