diff options
Diffstat (limited to 'plugins/data')
-rw-r--r-- | plugins/data/data_hiscore.lua | 8 | ||||
-rw-r--r-- | plugins/data/data_marp.lua | 2 | ||||
-rw-r--r-- | plugins/data/database.lua | 2 | ||||
-rw-r--r-- | plugins/data/load_dat.lua | 2 |
4 files changed, 7 insertions, 7 deletions
diff --git a/plugins/data/data_hiscore.lua b/plugins/data/data_hiscore.lua index 515b87a2302..867041a14cc 100644 --- a/plugins/data/data_hiscore.lua +++ b/plugins/data/data_hiscore.lua @@ -9,7 +9,7 @@ local curset function env.open(file, size) if file == ".hi" then local path = "hi" - local ini = emu.file(lfs.env_replace(manager:options().entries.inipath:value()), 1) + local ini = emu.file(emu.subst_env(manager:options().entries.inipath:value()), 1) local ret = ini:open("hiscore.ini") if not ret then local inifile = ini:read(ini:size()) @@ -23,7 +23,7 @@ function env.open(file, size) end file = path .. "/" .. curset .. ".hi" else - file = lfs.env_replace(manager:options().entries.nvram_directory:value()) .. "/" .. curset .. "/" .. file + file = emu.subst_env(manager:options().entries.nvram_directory:value()) .. "/" .. curset .. "/" .. file end local f = io.open(file, "rb") local content = f:read("*all") @@ -789,12 +789,12 @@ function dat.check(set, softlist) output = nil curset = set - local scrfile = emu.file(lfs.env_replace(mame_manager:ui():options().entries.historypath:value():gsub("([^;]+)", "%1/hi2txt")), 1) + local scrfile = emu.file(emu.subst_env(mame_manager:ui():options().entries.historypath:value():gsub("([^;]+)", "%1/hi2txt")), 1) local ret = scrfile:open(set .. ".lua") local script if ret then function get_xml_table(fileset) - local file = emu.file(lfs.env_replace(mame_manager:ui():options().entries.historypath:value():gsub("([^;]+)", "%1/hi2txt")), 1) + local file = emu.file(emu.subst_env(mame_manager:ui():options().entries.historypath:value():gsub("([^;]+)", "%1/hi2txt")), 1) local ret = file:open(fileset .. ".xml") if ret then return nil diff --git a/plugins/data/data_marp.lua b/plugins/data/data_marp.lua index 40db2daf366..5cb0bc3fb19 100644 --- a/plugins/data/data_marp.lua +++ b/plugins/data/data_marp.lua @@ -10,7 +10,7 @@ local function init() local file = "scores3.htm" 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 diff --git a/plugins/data/database.lua b/plugins/data/database.lua index 6eda6ab1507..da1a2508cad 100644 --- a/plugins/data/database.lua +++ b/plugins/data/database.lua @@ -9,7 +9,7 @@ local function check_db(msg) end do - local dbpath = lfs.env_replace(mame_manager:ui():options().entries.historypath:value():match("([^;]+)")) + local dbpath = emu.subst_env(mame_manager:ui():options().entries.historypath:value():match("([^;]+)")) db = sql.open(dbpath .. "/history.db") if not db then lfs.mkdir(dbpath) 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 |