diff options
author | 2016-11-12 15:16:56 -0600 | |
---|---|---|
committer | 2016-11-12 15:16:56 -0600 | |
commit | 7702f39327d034c302a459ea80df198a9bc783b0 (patch) | |
tree | 53d57693c5fcdf0d19eab437da35eda0b2195e3f /plugins/data/load_dat.lua | |
parent | f9998057380fadb9cadb840e05712ce00b2fae0c (diff) |
plugins/data: put database in correct path (nw)
Diffstat (limited to 'plugins/data/load_dat.lua')
-rw-r--r-- | plugins/data/load_dat.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |