diff options
author | sfan5 <sfan5@live.de> | 2021-09-19 17:55:01 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-10-07 00:20:01 +0200 |
commit | 2b5075f0e2a8223cdb07f000b7e8f874416ed3a8 (patch) | |
tree | 74cfcd8e0f5e4d906e465960bc125829806f9095 /builtin/mainmenu/common.lua | |
parent | 2d5b7b5fb48d182fbab8e4ad69e9a552a3c07c6e (diff) | |
download | dragonfireclient-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.lua | 12 |
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 -------------------------------------------------------------------------------- |