mirror of
https://github.com/holub/mame
synced 2025-07-01 16:19:38 +03:00
plugins/data: give up if the database can't be created (nw)
This commit is contained in:
parent
6cbf5c674b
commit
31be84ea40
@ -14,6 +14,10 @@ do
|
|||||||
if not db then
|
if not db then
|
||||||
lfs.mkdir(dbpath)
|
lfs.mkdir(dbpath)
|
||||||
db = sql.open(dbpath .. "/history.db")
|
db = sql.open(dbpath .. "/history.db")
|
||||||
|
if not db then
|
||||||
|
emu.print_error("Unable to create history.db\n")
|
||||||
|
return nil
|
||||||
|
end
|
||||||
check_db("opening database")
|
check_db("opening database")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user