aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/common.lua
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-09-19 17:55:01 +0200
committersfan5 <sfan5@live.de>2021-10-07 00:20:01 +0200
commit2b5075f0e2a8223cdb07f000b7e8f874416ed3a8 (patch)
tree74cfcd8e0f5e4d906e465960bc125829806f9095 /builtin/mainmenu/common.lua
parent2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e (diff)
downloaddragonfireclient-2b5075f0e2a8223cdb07f000b7e8f874416ed3a8.tar.xz
Move archive extraction in content store to async job
Diffstat (limited to 'builtin/mainmenu/common.lua')
-rw-r--r--builtin/mainmenu/common.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/builtin/mainmenu/common.lua b/builtin/mainmenu/common.lua
index 6db351048..b36c9596a 100644
--- a/builtin/mainmenu/common.lua
+++ b/builtin/mainmenu/common.lua
@@ -119,17 +119,9 @@ function render_serverlist_row(spec)
return table.concat(details, ",")
end
-
---------------------------------------------------------------------------------
-os.tempfolder = function()
- local temp = core.get_temp_path()
- return temp .. DIR_DELIM .. "MT_" .. math.random(0, 10000)
-end
-
+---------------------------------------------------------------------------------
os.tmpname = function()
- local path = os.tempfolder()
- io.open(path, "w"):close()
- return path
+ error('do not use') -- instead use core.get_temp_path()
end
--------------------------------------------------------------------------------