plugins/data: put database in correct path (nw)

This commit is contained in:
cracyc 2016-11-12 15:16:56 -06:00
parent f999805738
commit 7702f39327
2 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -89,8 +89,8 @@ bool mcd_isa_device::read_sector(bool first)
if(m_mode & 0x40)
{
//correct the header
m_buf[12] = dec_2_bcd(m_readmsf >> 16);
m_buf[13] = dec_2_bcd(m_readmsf >> 8);
m_buf[12] = dec_2_bcd((m_readmsf >> 16) & 0xff);
m_buf[13] = dec_2_bcd((m_readmsf >> 8) & 0xff);
}
m_readmsf = lba_to_msf_alt(lba + 1);
m_buf_count = m_dmalen + 1;