Fixed: use PatchUrl instead of PatchServer in ryzom_client_patcher

--HG--
branch : develop
This commit is contained in:
kervala 2015-12-21 17:31:14 +01:00
parent f88fd7719c
commit 9bc4534660

View file

@ -202,10 +202,10 @@ int main(int argc, char *argv[])
// load client.cfg or client_default.cfg // load client.cfg or client_default.cfg
ClientCfg.init(config); ClientCfg.init(config);
// check if PatchServer is defined // check if PatchUrl is defined
if (ClientCfg.PatchServer.empty()) if (ClientCfg.PatchUrl.empty())
{ {
printError("PatchServer not defined in " + config); printError("PatchUrl not defined in " + config);
return 1; return 1;
} }
@ -273,9 +273,9 @@ int main(int argc, char *argv[])
// set the correct root path // set the correct root path
pPM->setClientRootPath(rootPath); pPM->setClientRootPath(rootPath);
// use PatchServer URL // use PatchUrl
vector<string> patchURLs; vector<string> patchURLs;
pPM->init(patchURLs, ClientCfg.PatchServer, ClientCfg.PatchVersion); pPM->init(patchURLs, ClientCfg.PatchUrl, ClientCfg.PatchVersion);
pPM->startCheckThread(true /* include background patchs */); pPM->startCheckThread(true /* include background patchs */);
ucstring state; ucstring state;