summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2021-05-02 12:26:45 -0400
committer AJR <ajrhacker@users.noreply.github.com>2021-05-02 12:27:54 -0400
commit26defea154413796e7e38891a78c4834a8813358 (patch)
tree535b0f2dcd9fac6aa1fe87329d2ba1414b265f7b
parente21454f0d9e8cfba00ebbd2ac219b8dddeb88580 (diff)
init.lua: Change "historypath" (only supposed to be used for DATs) to "homepath" (where plugin data should reside)
-rw-r--r--plugins/console/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/console/init.lua b/plugins/console/init.lua
index 862445463a2..95218d67389 100644
--- a/plugins/console/init.lua
+++ b/plugins/console/init.lua
@@ -239,8 +239,8 @@ function console.startplugin()
end
if (not started) then
-- options are not available in startplugin, so we load the history here
- local historypath = emu.subst_env(manager.ui.options.entries.historypath:value():match("([^;]+)"))
- history_fullpath = historypath .. '/console_history'
+ local homepath = emu.subst_env(manager.ui.options.entries.homepath:value():match("([^;]+)"))
+ history_fullpath = homepath .. '/console_history'
ln.loadhistory(history_fullpath)
started = true
end