From 3c9c2f2787fae5bc2995d5ce2c83a4719abe9181 Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 28 Jul 2015 13:57:58 -0400 Subject: [PATCH] Fix external client build (again) These arguments for launching the patcher were broken by some plString changes. They don't work with the new patcher anyway, so let's just nuke that crufty crap! --- Sources/Plasma/Apps/plClient/winmain.cpp | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/Sources/Plasma/Apps/plClient/winmain.cpp b/Sources/Plasma/Apps/plClient/winmain.cpp index 052f7bcf..af179d9a 100644 --- a/Sources/Plasma/Apps/plClient/winmain.cpp +++ b/Sources/Plasma/Apps/plClient/winmain.cpp @@ -1190,25 +1190,9 @@ int WINAPI WinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR lpCmdLine, int nC memset(&pi, 0, sizeof(pi)); si.cb = sizeof(si); - const char** addrs; - if (!eventExists) // if it is missing, assume patcher wasn't launched { - plStringStream cmdLine; - - GetAuthSrvHostnames(&addrs); - if (strlen(addrs[0])) - cmdLine << " /AuthSrv=" << addrs[0]; - - GetFileSrvHostnames(&addrs); - if (strlen(addrs[0])) - cmdLine << " /FileSrv=" << addrs[0]; - - GetGateKeeperSrvHostnames(&addrs); - if (strlen(addrs[0])) - cmdLine << " /GateKeeperSrv=" << addrs[0]; - - if(!CreateProcessW(s_patcherExeName, (LPWSTR)cmdLine.GetString().ToUtf16().GetData(), NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) + if(!CreateProcessW(s_patcherExeName, NULL, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) { hsMessageBox("Failed to launch patcher", "Error", hsMessageBoxNormal); }