summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ee8c45f)
raw | patch | inline | side by side (parent: ee8c45f)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 01:01:00 +0000 (04:01 +0300) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Sat, 12 Oct 2019 15:54:12 +0000 (18:54 +0300) |
src/game/g_res_downloader.pas | patch | blob | history |
index d9cf5684c508c43eed986b311e1dcad0aba5a6f9..ae645a1196677443c505ee10f75dcd0e16f63193 100644 (file)
g_Res_ClearReplacementWads();
g_Res_received_map_start := false;
- try
- CreateDir(GameDir+'/maps/downloads');
- except
- end;
-
- try
- CreateDir(GameDir+'/wads/downloads');
- except
- end;
-
resList := TStringList.Create();
try
result := '';
exit;
end;
+ try
+ CreateDir(GameDir+'/maps/downloads');
+ except
+ end;
fname := GameDir+'/maps/downloads/'+FileName;
try
strm := createDiskFile(fname);
end
else
begin
+ try
+ CreateDir(GameDir+'/wads/downloads');
+ except
+ end;
fname := GameDir+'/wads/downloads/'+tf.diskName;
e_LogWritefln('downloading resource `%s` to `%s`...', [tf.diskName, fname]);
try