From d24aa2d1c64ab4c1efc19de0d1ca7a38e29ce969 Mon Sep 17 00:00:00 2001 From: Stas'M Date: Fri, 18 May 2018 16:34:31 +0300 Subject: [PATCH 1/1] Res Downloader: Display WAD and resource names --- src/game/g_res_downloader.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.29.2