mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-18 06:58:45 +00:00
Changed: Use CCmdArgs for client_patcher
This commit is contained in:
parent
1461b0afff
commit
fe26d14df4
1 changed files with 12 additions and 0 deletions
|
@ -1,6 +1,10 @@
|
||||||
#include "stdpch.h"
|
#include "stdpch.h"
|
||||||
#include "login_patch.h"
|
#include "login_patch.h"
|
||||||
#include "client_cfg.h"
|
#include "client_cfg.h"
|
||||||
|
#include "user_agent.h"
|
||||||
|
|
||||||
|
#include "nel/misc/cmd_args.h"
|
||||||
|
|
||||||
#include <locale.h>
|
#include <locale.h>
|
||||||
|
|
||||||
#ifdef NL_OS_WINDOWS
|
#ifdef NL_OS_WINDOWS
|
||||||
|
@ -28,6 +32,8 @@ string VersionName;
|
||||||
string LoginLogin, LoginPassword;
|
string LoginLogin, LoginPassword;
|
||||||
uint32 LoginShardId = 0xFFFFFFFF;
|
uint32 LoginShardId = 0xFFFFFFFF;
|
||||||
|
|
||||||
|
CCmdArgs Args;
|
||||||
|
|
||||||
bool useUtf8 = false;
|
bool useUtf8 = false;
|
||||||
bool useEsc = false;
|
bool useEsc = false;
|
||||||
|
|
||||||
|
@ -147,6 +153,12 @@ int main(int argc, char *argv[])
|
||||||
// init the Nel context
|
// init the Nel context
|
||||||
CApplicationContext appContext;
|
CApplicationContext appContext;
|
||||||
|
|
||||||
|
Args.setVersion(getDisplayVersion());
|
||||||
|
Args.setDescription("Ryzom client");
|
||||||
|
Args.addArg("c", "config", "id", "Use this configuration to determine what directory to use by default");
|
||||||
|
|
||||||
|
if (!Args.parse(argc, argv)) return 1;
|
||||||
|
|
||||||
// create logs in temporary directory
|
// create logs in temporary directory
|
||||||
createDebug(CPath::getTemporaryDirectory().c_str(), true, true);
|
createDebug(CPath::getTemporaryDirectory().c_str(), true, true);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue