From 33dfd39409526fda4d7d6e56952b23d409619151 Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 25 Sep 2016 10:20:49 +0200 Subject: [PATCH] Changed: Use CCmdArgs for sheets_packer, see #281 --HG-- branch : develop --- code/ryzom/tools/sheets_packer/sheets_packer.cpp | 11 +++++++++++ code/ryzom/tools/sheets_packer/stdpch.h | 4 ++++ 2 files changed, 15 insertions(+) diff --git a/code/ryzom/tools/sheets_packer/sheets_packer.cpp b/code/ryzom/tools/sheets_packer/sheets_packer.cpp index 9b6eef725..ce4467137 100644 --- a/code/ryzom/tools/sheets_packer/sheets_packer.cpp +++ b/code/ryzom/tools/sheets_packer/sheets_packer.cpp @@ -57,6 +57,17 @@ static uint32 Version = 1; // Client Version. //--------------------------------------------------- int main(int argc, char **argv) { + CApplicationContext applicationContext; + + // Parse Command Line. + NLMISC::CCmdArgs args; + + args.setDescription("Pack all sheets needed by client. All parameters must be defined in sheets_packer.cfg and there is no parameters from command-line."); + + if (!args.parse(argc, argv)) return 1; + + CFileDisplayer *fd = NULL; + ///////////////////////////////// // Initialize the application. // try diff --git a/code/ryzom/tools/sheets_packer/stdpch.h b/code/ryzom/tools/sheets_packer/stdpch.h index df8f1370f..a8f68441a 100644 --- a/code/ryzom/tools/sheets_packer/stdpch.h +++ b/code/ryzom/tools/sheets_packer/stdpch.h @@ -31,6 +31,10 @@ #include #include #include +#include +#include +#include +#include #ifdef NL_OS_WINDOWS #define NOMINMAX