summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/hiscore
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2021-05-07 02:09:13 +1000
committer Vas Crabb <vas@vastheman.com>2021-05-07 02:14:05 +1000
commitfab84e8d2b9177e11d334a82892dc554d128052b (patch)
treeb7cbeb727891f6c09048f1f11f9dbe9576e348fe /plugins/hiscore
parent075d934ff422e6b03352d91877d4ec92fb218641 (diff)
Mostly revert "Create console history file in homepath (#8026)"
The change to make the console plugin work is preserved. This reverts commit 25137717c9392d142650fcd679b09c400a2f5c4a.
Diffstat (limited to 'plugins/hiscore')
-rw-r--r--plugins/hiscore/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/hiscore/init.lua b/plugins/hiscore/init.lua
index 093737a9eec..2a9687d1547 100644
--- a/plugins/hiscore/init.lua
+++ b/plugins/hiscore/init.lua
@@ -12,7 +12,6 @@ exports.description = "Hiscore"
exports.license = "WTFPL license"
exports.author = { name = "borgar@borgar.net" }
local hiscore = exports
-local util = require("util")
local hiscore_plugin_path = ""
@@ -172,7 +171,7 @@ function hiscore.startplugin()
local output = io.open(get_file_name(), "wb");
if not output then
-- attempt to create the directory, and try again
- util.mkdir_recursive( hiscore_path );
+ lfs.mkdir( hiscore_path );
output = io.open(get_file_name(), "wb");
end
emu.print_verbose("hiscore: write_scores output")