diff options
author | 2021-05-07 02:09:13 +1000 | |
---|---|---|
committer | 2021-05-07 02:14:05 +1000 | |
commit | fab84e8d2b9177e11d334a82892dc554d128052b (patch) | |
tree | b7cbeb727891f6c09048f1f11f9dbe9576e348fe /plugins/cheat/init.lua | |
parent | 075d934ff422e6b03352d91877d4ec92fb218641 (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/cheat/init.lua')
-rw-r--r-- | plugins/cheat/init.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua index 412bc261030..208efc3585e 100644 --- a/plugins/cheat/init.lua +++ b/plugins/cheat/init.lua @@ -72,7 +72,6 @@ exports.license = "The BSD 3-Clause License" exports.author = { name = "Carl" } local cheat = exports -local util = require("util") function cheat.set_folder(path) cheat.path = path @@ -160,7 +159,7 @@ function cheat.startplugin() local path = emu.subst_env(manager.machine.options.entries.cheatpath:value():match("([^;]+)")) local attr = lfs.attributes(path) if not attr then - util.mkdir_recursive(path) + lfs.mkdir(path) elseif attr.mode ~= "directory" then -- uhhh? return end @@ -168,7 +167,7 @@ function cheat.startplugin() local softpath = path .. "/" .. cheatname:match("([^/]+)") local attr = lfs.attributes(softpath) if not attr then - util.mkdir_recursive(softpath) + lfs.mkdir(softpath) elseif attr.mode ~= "directory" then -- uhhh? return end |