summaryrefslogtreecommitdiffstatshomepage
path: root/plugins/cheat/init.lua
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/cheat/init.lua
parent6082c57817462f56ca4bfdfd1908c4498677c4b9 (diff)
plugins: Replace environment variable substitution function with core version
Diffstat (limited to 'plugins/cheat/init.lua')
-rw-r--r--plugins/cheat/init.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/cheat/init.lua b/plugins/cheat/init.lua
index 970e7f3a848..082864bb2fb 100644
--- a/plugins/cheat/init.lua
+++ b/plugins/cheat/init.lua
@@ -134,7 +134,7 @@ function cheat.startplugin()
local function load_hotkeys()
local json = require("json")
- local file = io.open(lfs.env_replace(manager:machine():options().entries.cheatpath:value():match("([^;]+)")) .. "/" .. cheatname .. "_hotkeys.json", "r")
+ local file = io.open(emu.subst_env(manager:machine():options().entries.cheatpath:value():match("([^;]+)")) .. "/" .. cheatname .. "_hotkeys.json", "r")
if not file then
return
end
@@ -160,7 +160,7 @@ function cheat.startplugin()
end
if #hotkeys > 0 then
local json = require("json")
- local path = lfs.env_replace(manager:machine():options().entries.cheatpath:value():match("([^;]+)"))
+ local path = emu.subst_env(manager:machine():options().entries.cheatpath:value():match("([^;]+)"))
local attr = lfs.attributes(path)
if not attr then
lfs.mkdir(path)