|
|
@ -798,18 +798,14 @@ void SetBytesRemainingCallback (unsigned bytes) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
enum { |
|
|
|
enum { |
|
|
|
kArgAuthSrv, |
|
|
|
|
|
|
|
kArgFileSrv, |
|
|
|
kArgFileSrv, |
|
|
|
kArgGateKeeperSrv, |
|
|
|
|
|
|
|
kArgNoSelfPatch, |
|
|
|
kArgNoSelfPatch, |
|
|
|
kArgBuildId, |
|
|
|
kArgBuildId, |
|
|
|
kArgCwd, |
|
|
|
kArgCwd, |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
static const CmdArgDef s_cmdLineArgs[] = { |
|
|
|
static const CmdArgDef s_cmdLineArgs[] = { |
|
|
|
{ kCmdArgFlagged | kCmdTypeString, L"AuthSrv", kArgAuthSrv }, |
|
|
|
|
|
|
|
{ kCmdArgFlagged | kCmdTypeString, L"FileSrv", kArgFileSrv }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeString, L"FileSrv", kArgFileSrv }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeString, L"GateKeeperSrv", kArgGateKeeperSrv }, |
|
|
|
|
|
|
|
{ kCmdArgFlagged | kCmdTypeBool, L"NoSelfPatch", kArgNoSelfPatch }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeBool, L"NoSelfPatch", kArgNoSelfPatch }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeInt, L"BuildId", kArgBuildId }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeInt, L"BuildId", kArgBuildId }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeBool, L"Cwd", kArgCwd }, |
|
|
|
{ kCmdArgFlagged | kCmdTypeBool, L"Cwd", kArgCwd }, |
|
|
@ -868,12 +864,8 @@ int __stdcall WinMain ( |
|
|
|
0, |
|
|
|
0, |
|
|
|
nil
|
|
|
|
nil
|
|
|
|
); |
|
|
|
); |
|
|
|
if (cmdParser.IsSpecified(kArgAuthSrv)) |
|
|
|
|
|
|
|
SetAuthSrvHostname(cmdParser.GetString(kArgAuthSrv)); |
|
|
|
|
|
|
|
if (cmdParser.IsSpecified(kArgFileSrv)) |
|
|
|
if (cmdParser.IsSpecified(kArgFileSrv)) |
|
|
|
SetFileSrvHostname(cmdParser.GetString(kArgFileSrv)); |
|
|
|
SetFileSrvHostname(cmdParser.GetString(kArgFileSrv)); |
|
|
|
if (cmdParser.IsSpecified(kArgGateKeeperSrv)) |
|
|
|
|
|
|
|
SetGateKeeperSrvHostname(cmdParser.GetString(kArgGateKeeperSrv)); |
|
|
|
|
|
|
|
if(cmdParser.IsSpecified(kArgBuildId)) |
|
|
|
if(cmdParser.IsSpecified(kArgBuildId)) |
|
|
|
s_launcherInfo.buildId = cmdParser.GetInt(kArgBuildId); |
|
|
|
s_launcherInfo.buildId = cmdParser.GetInt(kArgBuildId); |
|
|
|
|
|
|
|
|
|
|
|