Changed: Use CCmdArgs for sheets_packer, see #281

--HG--
branch : develop
feature/pipeline-tools
kervala 9 years ago
parent 130b270380
commit 33dfd39409

@ -57,6 +57,17 @@ static uint32 Version = 1; // Client Version.
//--------------------------------------------------- //---------------------------------------------------
int main(int argc, char **argv) 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. // // Initialize the application. //
try try

@ -31,6 +31,10 @@
#include <nel/misc/bit_mem_stream.h> #include <nel/misc/bit_mem_stream.h>
#include <nel/misc/mem_stream.h> #include <nel/misc/mem_stream.h>
#include <nel/misc/sheet_id.h> #include <nel/misc/sheet_id.h>
#include <nel/misc/debug.h>
#include <nel/misc/cmd_args.h>
#include <nel/ligo/ligo_config.h>
#include <nel/ligo/primitive_utils.h>
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
#define NOMINMAX #define NOMINMAX

Loading…
Cancel
Save