summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 91a5ffe)
raw | patch | inline | side by side (parent: 91a5ffe)
author | Stas'M <x86corez@gmail.com> | |
Fri, 18 May 2018 13:34:31 +0000 (16:34 +0300) | ||
committer | Stas'M <x86corez@gmail.com> | |
Fri, 18 May 2018 13:35:22 +0000 (16:35 +0300) |
src/game/g_res_downloader.pas | patch | blob | history |
index 0bc531b481d3d18d9c4bd4a153ada3eac0130b2e..fcb4ad9047279574b9622aa6158f23ed4373e7a1 100644 (file)
implementation
-uses g_language, sfs, utils, wadreader;
+uses g_language, sfs, utils, wadreader, g_game;
const DOWNLOAD_DIR = 'downloads';
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);
[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);