plugins/portname: Use emu.subst_env

This commit is contained in:
AJR 2020-12-08 15:57:41 -05:00
parent e70d4ebb34
commit a7921a601b

View File

@ -28,7 +28,7 @@ local portname = exports
function portname.startplugin() function portname.startplugin()
local json = require("json") local json = require("json")
local ctrlrpath = lfs.subst_env(manager:options().entries.ctrlrpath:value():match("([^;]+)")) local ctrlrpath = emu.subst_env(manager:options().entries.ctrlrpath:value():match("([^;]+)"))
local function get_filename(nosoft) local function get_filename(nosoft)
local filename local filename
if emu.softname() ~= "" and not nosoft then if emu.softname() ~= "" and not nosoft then