mirror of
https://github.com/holub/mame
synced 2025-10-04 16:34:53 +03:00
plugins/data: put database in correct path (nw)
This commit is contained in:
parent
f999805738
commit
7702f39327
@ -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)
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user