From e70d4ebb34be2bfbd9e93cf862d8d4d68ddf37cb Mon Sep 17 00:00:00 2001 From: AJR Date: Tue, 8 Dec 2020 09:44:32 -0500 Subject: plugins: Replace environment variable substitution function with core version --- plugins/cheatfind/init.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins/cheatfind/init.lua') 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") -- cgit v1.2.3