From: Stas'M Date: Fri, 18 May 2018 13:34:31 +0000 (+0300) Subject: Res Downloader: Display WAD and resource names X-Git-Url: http://deadsoftware.ru/gitweb?p=d2df-sdl.git;a=commitdiff_plain;h=d24aa2d1c64ab4c1efc19de0d1ca7a38e29ce969 Res Downloader: Display WAD and resource names --- diff --git a/src/game/g_res_downloader.pas b/src/game/g_res_downloader.pas index 0bc531b..fcb4ad9 100644 --- a/src/game/g_res_downloader.pas +++ b/src/game/g_res_downloader.pas @@ -25,7 +25,7 @@ function g_Res_DownloadWAD(const FileName: string): string; implementation -uses g_language, sfs, utils, wadreader; +uses g_language, sfs, utils, wadreader, g_game; const DOWNLOAD_DIR = 'downloads'; @@ -132,6 +132,7 @@ begin SetLength(mapData.ExternalResources, 0); g_Console_Add(Format(_lc[I_NET_MAP_DL], [FileName])); e_WriteLog('Downloading map `' + FileName + '` from server', TMsgType.Notify); + g_Game_SetLoadingText(FileName + '...', 0, False); MC_SEND_MapRequest(); msgStream := g_Net_Wait_Event(NET_MSG_MAP_RESPONSE); @@ -151,6 +152,7 @@ begin [mapData.ExternalResources[i].Name])); e_WriteLog('Downloading Wad `' + mapData.ExternalResources[i].Name + '` from server', TMsgType.Notify); + g_Game_SetLoadingText(mapData.ExternalResources[i].Name + '...', 0, False); MC_SEND_ResRequest(mapData.ExternalResources[i].Name); msgStream := g_Net_Wait_Event(NET_MSG_RES_RESPONSE);