From fa6bd3726529062b4ea003532eab5aa19de081cf Mon Sep 17 00:00:00 2001 From: cracyc Date: Thu, 14 Jul 2016 14:57:47 -0500 Subject: plugins/cheatfind: add operand size to simple cheat and write cheats from cheatfind into simple file (nw) --- plugins/boot.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'plugins/boot.lua') 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" -- cgit v1.2.3