summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_save.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/autofire/autofire_save.lua')
-rw-r--r--plugins/autofire/autofire_save.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/autofire/autofire_save.lua b/plugins/autofire/autofire_save.lua
index e7d28029cd5..b15947fc168 100644
--- a/plugins/autofire/autofire_save.lua
+++ b/plugins/autofire/autofire_save.lua
@@ -1,7 +1,9 @@
local lib = {}
+local plugin_path = ''
+
local function get_settings_path()
- return lfs.env_replace(manager:machine():options().entries.pluginspath:value():match('([^;]+)')) .. '/autofire/cfg/'
+ return plugin_path .. '/cfg/'
end
local function get_settings_filename()
@@ -45,6 +47,10 @@ local function serialize_settings(button_list)
return settings
end
+function lib:set_plugin_path(path)
+ plugin_path = path
+end
+
function lib:load_settings()
local buttons = {}
local json = require('json')