diff options
| author | 2020-12-27 01:32:37 +1100 | |
|---|---|---|
| committer | 2020-12-27 01:32:37 +1100 | |
| commit | 9e36b6a6d951ea6f2d72cab874c3c8e72d001001 (patch) | |
| tree | c41bfd0c1b499d790c4091eb266caf6955219fc1 /plugins/data/database.lua | |
| parent | 509c946736b5f02cac84d19f2cde4e966d637a2c (diff) | |
More Lua interface cleanup - it's simpler with cleaner underlyng APIs.
Made the sound manager mute controls readable, and got rid of system
enable since it just controls system mute anyway. This was causing
confusion: phantom2 was trying to use both independentlyt casuing the
mute bit to be ignored.
THe Lua interface changes are mostly changing methods to properties,
some renames to make things clearer, and some additional properties for
better control over snapshots.
Diffstat (limited to 'plugins/data/database.lua')
| -rw-r--r-- | plugins/data/database.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/data/database.lua b/plugins/data/database.lua index da1a2508cad..b868173ce08 100644 --- a/plugins/data/database.lua +++ b/plugins/data/database.lua @@ -4,12 +4,12 @@ local db local function check_db(msg) if db:errcode() > sql.OK then - emu.print_error("Error: " .. msg .. " (" .. db:errcode() .. " - " .. db:errmsg() .. ")\n") + emu.print_error(string.format("Error: %s (%s - %s)\n", msg, db:errcode(), db:errmsg())) end end do - local dbpath = emu.subst_env(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) |
