From 7702f39327d034c302a459ea80df198a9bc783b0 Mon Sep 17 00:00:00 2001 From: cracyc Date: Sat, 12 Nov 2016 15:16:56 -0600 Subject: plugins/data: put database in correct path (nw) --- plugins/data/load_dat.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/data') diff --git a/plugins/data/load_dat.lua b/plugins/data/load_dat.lua index 6133b99af29..881ed40f5b3 100644 --- a/plugins/data/load_dat.lua +++ b/plugins/data/load_dat.lua @@ -1,6 +1,6 @@ local sql = require("lsqlite3") local datfile = {} -local db = sql.open(mame_manager:ui():options().entries.historypath:value():match("([^;]+)") .. "/history.db") +local db = sql.open(lfs.env_replace(mame_manager:ui():options().entries.historypath:value():match("([^;]+)")) .. "/history.db") if db then local found = false db:exec("select * from sqllite_master where name = version", function() found = true return 0 end) -- cgit v1.2.3