summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/boot.lua
diff options
context:
space:
mode:
author cracyc <cracyc@users.noreply.github.com>2016-07-14 14:57:47 -0500
committer cracyc <cracyc@users.noreply.github.com>2016-07-14 14:57:47 -0500
commitfa6bd3726529062b4ea003532eab5aa19de081cf (patch)
tree454a8bc1a1699ed229983bb624db13676596a49c /plugins/boot.lua
parent5707b183dd0c203467be2dcaba5bf48b3e1e6cca (diff)
plugins/cheatfind: add operand size to simple cheat and write cheats from cheatfind into simple file (nw)
Diffstat (limited to 'plugins/boot.lua')
-rw-r--r--plugins/boot.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/boot.lua b/plugins/boot.lua
index 11ee6682bae..2e5b46e679d 100644
--- a/plugins/boot.lua
+++ b/plugins/boot.lua
@@ -2,7 +2,8 @@
-- copyright-holders:Miodrag Milanovic
require('lfs')
-local function env_replace(str)
+-- add helper to lfs for plugins to use
+function lfs.env_replace(str)
local pathsep = package.config:sub(1,1)
local function dorep(val)
ret = os.getenv(val)
@@ -19,7 +20,7 @@ local function env_replace(str)
end
return str
end
-local dir = env_replace(manager:options().entries.pluginspath:value())
+local dir = lfs.env_replace(manager:options().entries.pluginspath:value())
package.path = package.path .. ";" .. dir .. "/?.lua;" .. dir .. "/?/init.lua"