From 8ffff1cb7bc4d0301e2c86c05b0492de8d40cbee Mon Sep 17 00:00:00 2001 From: Nicholas Hastings Date: Tue, 26 Jul 2011 21:30:22 -0500 Subject: [PATCH] Added -dumpcdr param to do quick XML dump of CDR. --- DepotDownloader/Program.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/DepotDownloader/Program.cs b/DepotDownloader/Program.cs index 5e056ae0..e597b9b8 100644 --- a/DepotDownloader/Program.cs +++ b/DepotDownloader/Program.cs @@ -23,6 +23,17 @@ namespace DepotDownloader ServerCache.Build(); CDRManager.Update(); + if ( HasParameter( args, "-dumpcdr-xml" ) ) + { + BlobXmlReader bxr; + using ( bxr = BlobXmlReader.Create( "cdr.blob", "cdrdump.xml" ) ) + { + bxr.Process(); + } + + return; + } + if (HasParameter( args, "-list" ) ) { CDRManager.ListGameServers(); @@ -214,6 +225,9 @@ namespace DepotDownloader Console.WriteLine( "\t-game name\t\t\t- the HLDSUpdateTool game server to download." ); Console.WriteLine( "\t OR" ); Console.WriteLine( "\t-list\t\t\t\t- print list of game servers that can be downloaded using -game." ); + Console.WriteLine( "\t OR" ); + Console.WriteLine( "\t-dumpcdr-xml\t\t\t- exports CDR to XML (cdrdump.xml)." ); + Console.WriteLine(); Console.WriteLine( "\t-version [# or \"latest\"]\t- the version of the depot to download. Uses latest if none specified.\n" ); Console.WriteLine( "Optional Parameters:" );