From 907a95ff8b22b21abf708c697de6f156aeb31dae Mon Sep 17 00:00:00 2001 From: Titus Tscharntke Date: Sat, 9 Nov 2013 01:14:32 +0000 Subject: [PATCH] add "(.7z)"-String to error messages to give people at least an idea why tileset/techtree download is blocked --- source/glest_game/menu/menu_state_connected_game.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/glest_game/menu/menu_state_connected_game.cpp b/source/glest_game/menu/menu_state_connected_game.cpp index dfc04617..a8da6706 100644 --- a/source/glest_game/menu/menu_state_connected_game.cpp +++ b/source/glest_game/menu/menu_state_connected_game.cpp @@ -4020,10 +4020,10 @@ void MenuStateConnectedGame::FTPClient_CallbackEvent(string itemName, for(unsigned int i = 0; i < languageList.size(); ++i) { char szMsg[8096]=""; if(lang.hasString("DataMissingTilesetFailDownload",languageList[i]) == true) { - snprintf(szMsg,8096,lang.getString("DataMissingTilesetFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version); + snprintf(szMsg,8096,lang.getString("DataMissingTilesetFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version); } else { - snprintf(szMsg,8096,"Player: %s FAILED to download the tileset: [%s] using CURL version [%s]",getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version); + snprintf(szMsg,8096,"Player: %s FAILED to download the tileset: [%s] using CURL version [%s]",getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version); } clientInterface->sendTextMessage(szMsg,-1, lang.isLanguageLocal(languageList[i]),languageList[i]); @@ -4114,10 +4114,10 @@ void MenuStateConnectedGame::FTPClient_CallbackEvent(string itemName, for(unsigned int i = 0; i < languageList.size(); ++i) { char szMsg[8096]=""; if(lang.hasString("DataMissingTechtreeFailDownload",languageList[i]) == true) { - snprintf(szMsg,8096,lang.getString("DataMissingTechtreeFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version); + snprintf(szMsg,8096,lang.getString("DataMissingTechtreeFailDownload",languageList[i]).c_str(),getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version); } else { - snprintf(szMsg,8096,"Player: %s FAILED to download the techtree: [%s] using CURL version [%s]",getHumanPlayerName().c_str(),itemName.c_str(),curlVersion->version); + snprintf(szMsg,8096,"Player: %s FAILED to download the techtree: [%s] using CURL version [%s]",getHumanPlayerName().c_str(),(itemName+"(.7z)").c_str(),curlVersion->version); } clientInterface->sendTextMessage(szMsg,-1, lang.isLanguageLocal(languageList[i]),languageList[i]);