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, 1 insertions, 7 deletions
diff --git a/plugins/autofire/autofire_save.lua b/plugins/autofire/autofire_save.lua
index b15947fc168..2f353417e3e 100644
--- a/plugins/autofire/autofire_save.lua
+++ b/plugins/autofire/autofire_save.lua
@@ -1,9 +1,7 @@
local lib = {}
-local plugin_path = ''
-
local function get_settings_path()
- return plugin_path .. '/cfg/'
+ return lfs.env_replace(manager:machine():options().entries.homepath:value():match('([^;]+)')) .. '/autofire/'
end
local function get_settings_filename()
@@ -47,10 +45,6 @@ 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')