diff options
author | 2021-05-04 02:40:10 +0200 | |
---|---|---|
committer | 2021-05-03 20:40:10 -0400 | |
commit | 25137717c9392d142650fcd679b09c400a2f5c4a (patch) | |
tree | 3d0f917bd4ef51a36cb45f78e3b8d33dcf375ffe /plugins/boot.lua | |
parent | a90f1c885d8cbb7105cf6af2e1e2661799b5c529 (diff) |
Create console history file in homepath (#8026)
* Fix console history path, homepath is a core option
* Create missing directories recursively in lua plugins.
* Add lfs to global environment in a less magical way.
require normally doesn't bind the name globally just returns the
module, mame sets a preloader that does bind lfs globally, but
maybe it's less surprising to do it explicitly
Diffstat (limited to 'plugins/boot.lua')
-rw-r--r-- | plugins/boot.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/boot.lua b/plugins/boot.lua index 8ae3e069755..0bc32e91b27 100644 --- a/plugins/boot.lua +++ b/plugins/boot.lua @@ -1,6 +1,6 @@ -- license:BSD-3-Clause -- copyright-holders:Miodrag Milanovic -require('lfs') +_G.lfs = require("lfs") _G._ = emu.lang_translate _G.emu.plugin = {} -- table to contain plugin interfaces |