summary refs log tree commit diff stats
path: root/tests/manyloc
diff options
context:
space:
mode:
authorMiran <narimiran@disroot.org>2019-01-18 07:18:32 +0100
committerGitHub <noreply@github.com>2019-01-18 07:18:32 +0100
commit214f48eae9b6a02d5ba68ddf0b1e6b9a26bddacb (patch)
tree42c44a6631eca1f4ee225a0dafb960d7a7b54db5 /tests/manyloc
parentcceb28b5eb9bae4f0fc364899858018a1bf480ae (diff)
downloadNim-214f48eae9b6a02d5ba68ddf0b1e6b9a26bddacb.tar.gz
Remove long deprecated stuff (#10332)
Diffstat (limited to 'tests/manyloc')
-rw-r--r--tests/manyloc/nake/nakefile.nim5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/manyloc/nake/nakefile.nim b/tests/manyloc/nake/nakefile.nim
index 9c66ad71c..35ed3cbb0 100644
--- a/tests/manyloc/nake/nakefile.nim
+++ b/tests/manyloc/nake/nakefile.nim
@@ -83,6 +83,7 @@ task "download", "download game assets":
   var
     skipAssets = false
     path = expandFilename("data")
+    client = newHttpClient()
   path.add DirSep
   path.add(extractFilename(GameAssets))
   if existsFile(path):
@@ -101,7 +102,7 @@ task "download", "download game assets":
     echo "Downloading from ", GameAssets
   if not skipAssets:
     echo "Downloading to ", path
-    downloadFile GameAssets, path
+    client.downloadFile(GameAssets, path)
     echo "Download finished"
 
     let targetDir = parentDir(parentDir(path))
@@ -126,7 +127,7 @@ task "download", "download game assets":
   else:
     return
   path = extractFilename(BinLibs)
-  downloadFile BinLibs, path
+  client.downloadFile(BinLibs, path)
   echo "Downloaded dem libs ", path
   when true: echo "Unpack it yourself, sorry."
   else:  ## this crashes, dunno why