summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/data/data_hiscore.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/data/data_hiscore.lua')
-rw-r--r--plugins/data/data_hiscore.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/data/data_hiscore.lua b/plugins/data/data_hiscore.lua
index 3bf5467fe9e..e6d7d75fdc0 100644
--- a/plugins/data/data_hiscore.lua
+++ b/plugins/data/data_hiscore.lua
@@ -1,6 +1,8 @@
-- to use this get the package from http://greatstone.free.fr/hi2txt/
-- extract the hi2txt.zip and place it in your history path
+local util = require("util")
+
local dat = {}
local env = {}
local output
@@ -1206,7 +1208,7 @@ function dat.check(set, softlist)
local scrpath = path:match("[^;]*") .. "/"
local scrfile = io.open(scrpath .. set .. ".lua", "w+")
if not scrfile then
- lfs.mkdir(scrpath)
+ util.mkdir_recursive(scrpath)
scrfile = io.open(scrpath .. set .. ".lua", "w+")
end
if scrfile then