summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheatfind
diff options
context:
space:
mode:
author AJR <ajrhacker@users.noreply.github.com>2020-12-08 09:44:32 -0500
committer AJR <ajrhacker@users.noreply.github.com>2020-12-08 09:44:32 -0500
commite70d4ebb34be2bfbd9e93cf862d8d4d68ddf37cb (patch)
treea83af7d1cc8e19b49f1a82ede6dc346a548cef1f /plugins/cheatfind
parent6082c57817462f56ca4bfdfd1908c4498677c4b9 (diff)
plugins: Replace environment variable substitution function with core version
Diffstat (limited to 'plugins/cheatfind')
-rw-r--r--plugins/cheatfind/init.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/cheatfind/init.lua b/plugins/cheatfind/init.lua
index e6a359f6564..e540fe59fe6 100644
--- a/plugins/cheatfind/init.lua
+++ b/plugins/cheatfind/init.lua
@@ -959,8 +959,7 @@ function cheatfind.startplugin()
end
end
end
- -- lfs.env_replace is defined in boot.lua
- cheat_save.path = lfs.env_replace(manager:machine():options().entries.cheatpath:value()):match("([^;]+)")
+ cheat_save.path = emu.subst_env(manager:machine():options().entries.cheatpath:value()):match("([^;]+)")
cheat_save.filename = string.format("%s/%s", cheat_save.path, setname)
cheat_save.name = cheat.desc
local json = require("json")