mirror of
https://github.com/holub/mame
synced 2025-04-22 08:22:15 +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
|
||||
lfs.mkdir(dbpath)
|
||||
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")
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user