diff options
author | 2021-05-07 02:09:13 +1000 | |
---|---|---|
committer | 2021-05-07 02:14:05 +1000 | |
commit | fab84e8d2b9177e11d334a82892dc554d128052b (patch) | |
tree | b7cbeb727891f6c09048f1f11f9dbe9576e348fe /plugins/data/database.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/data/database.lua')
-rw-r--r-- | plugins/data/database.lua | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/data/database.lua b/plugins/data/database.lua index bd7de2d665d..b868173ce08 100644 --- a/plugins/data/database.lua +++ b/plugins/data/database.lua @@ -1,7 +1,6 @@ local sql = require("lsqlite3") local datfile = {} local db -local util = require("util") local function check_db(msg) if db:errcode() > sql.OK then @@ -13,10 +12,7 @@ do local dbpath = emu.subst_env(mame_manager.ui.options.entries.historypath:value():match("([^;]+)")) db = sql.open(dbpath .. "/history.db") if not db then - local success, err = util.mkdir_recursive(dbpath) - if not success then - emu.print_error("Unable to create parent directories for history database: " .. err) - end + lfs.mkdir(dbpath) db = sql.open(dbpath .. "/history.db") if not db then emu.print_error("Unable to create history.db\n") |