summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/autofire/autofire_save.lua
diff options
context:
space:
mode:
author Jack Li <jackrjli@berkeley.edu>2019-05-30 11:31:57 -0700
committer R. Belmont <rb6502@users.noreply.github.com>2019-05-30 14:31:57 -0400
commit2da86cda04731e3aa4e59b1ee0c7ff73929897aa (patch)
treebde46a1bc60a3f6762149ea1b52989334592aadb /plugins/autofire/autofire_save.lua
parenta94e08d1d1c2e446d9f96c69b00815e0685444fc (diff)
Change autofire config directory to homepath (#5129)
* Revert "Used set_folder to avoid hardcoding plugin name in settings path" This reverts commit 76884986fd8630f81cfc838aa42f264fdcec2ea9. * Changed autofire config directory to homepath * Bumped autofire plugin version
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')