From a1280a9647e29902e12522fbeb79e4f68927ce99 Mon Sep 17 00:00:00 2001 From: BThallid Date: Tue, 13 Jul 2010 22:25:27 -0500 Subject: [PATCH] Reenable updating from server to test server patching. Cherry-Picked from BThallids commit aba621b7359df5e73b42b0dcb3be3afeb9b802b3 --- src/Client/Realm/RealmSession.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Client/Realm/RealmSession.cpp b/src/Client/Realm/RealmSession.cpp index d2aa394..040eef2 100644 --- a/src/Client/Realm/RealmSession.cpp +++ b/src/Client/Realm/RealmSession.cpp @@ -545,11 +545,17 @@ void RealmSession::_HandleLogonProof(ByteBuffer& pkt) // handle error codes switch(error) { + case REALM_AUTH_WRONG_BUILD_NUMBER: + log("Wrong or invalid build version."); + if(gui) + gui->SetSceneData(ISCENE_LOGIN_CONN_STATUS,DSCENE_LOGIN_WRONG_VERSION); + DieOrReconnect(true); + return; + case REALM_AUTH_UPDATE_CLIENT: log("The realm server requested client update."); if(gui) gui->SetSceneData(ISCENE_LOGIN_CONN_STATUS,DSCENE_LOGIN_WRONG_VERSION); - DieOrReconnect(true); return; case REALM_AUTH_NO_MATCH: @@ -685,7 +691,7 @@ void RealmSession::_HandleTransferData(ByteBuffer& pkt) { std::fstream fh; char namebuf[100]; - sprintf(namebuf,"%u_%s.mpq",GetInstance()->GetConf()->clientbuild,GetInstance()->GetConf()->clientlang.c_str()); + sprintf(namebuf,"%u%s.mpq",GetInstance()->GetConf()->clientbuild,GetInstance()->GetConf()->clientlang.c_str()); fh.open(namebuf,std::ios_base::out | std::ios_base::binary); if(fh.is_open()) {