diff options
author | Simon Howard | 2011-10-21 20:03:31 +0000 |
---|---|---|
committer | Simon Howard | 2011-10-21 20:03:31 +0000 |
commit | 48e858988f16109b81ce1c3b3e4d63c3565f25b3 (patch) | |
tree | fdef24d8c8e440bf4ffdf9fbaaf9a3f3dca90635 /src/doom/d_main.c | |
parent | 15f1bce94eec21fe9e11ee7e6745d01ccd4cfa70 (diff) | |
download | chocolate-doom-48e858988f16109b81ce1c3b3e4d63c3565f25b3.tar.gz chocolate-doom-48e858988f16109b81ce1c3b3e4d63c3565f25b3.tar.bz2 chocolate-doom-48e858988f16109b81ce1c3b3e4d63c3565f25b3.zip |
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
Diffstat (limited to 'src/doom/d_main.c')
-rw-r--r-- | src/doom/d_main.c | 7 |
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 |