Browse Source

Don't need these extra params for the patcher

Michael Hansen 14 years ago
parent
commit
a3cea96d9c
  1. 4
      Sources/Plasma/Apps/plClient/winmain.cpp
  2. 8
      Sources/Plasma/Apps/plUruLauncher/Main.cpp

4
Sources/Plasma/Apps/plClient/winmain.cpp

@ -1575,10 +1575,8 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC
#endif
const wchar *serverIni = L"server.ini";
if(cmdParser.IsSpecified(kArgServerIni))
{
if (cmdParser.IsSpecified(kArgServerIni))
serverIni = cmdParser.GetString(kArgServerIni);
}
// check to see if we were launched from the patcher
bool eventExists = false;

8
Sources/Plasma/Apps/plUruLauncher/Main.cpp

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

Loading…
Cancel
Save