mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
plugins/data: properly clear history data when loading new file
This commit is contained in:
parent
82222e9b73
commit
9c14a66139
1 changed files with 2 additions and 0 deletions
|
@ -80,6 +80,8 @@ local function init()
|
|||
if dbver then
|
||||
db.exec("DELETE FROM \"" .. file .. "\"")
|
||||
db.check("deleting history")
|
||||
db.exec("DELETE FROM \"" .. file .. "_idx\"")
|
||||
db.check("deleting index")
|
||||
stmt = db.prepare("UPDATE version SET version = ? WHERE datfile = ?")
|
||||
db.check("updating history version")
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue