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/data/load_dat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/data/load_dat.lua') diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua index 024dbac0ad3..a21ae51aebe 100644 --- a/plugins/data/load_dat.lua +++ b/plugins/data/load_dat.lua @@ -27,7 +27,7 @@ function datfile.open(file, vertag, fixupcb) local fh for path in mame_manager:ui():options().entries.historypath:value():gmatch("([^;]+)") do - filepath = lfs.env_replace(path) .. "/" .. file + filepath = emu.subst_env(path) .. "/" .. file fh = io.open(filepath, "r") if fh then break -- cgit v1.2.3-70-g09d2