mirror of https://github.com/mgba-emu/mgba.git
No-Intro: Make sure to commit pending transactions
This commit is contained in:
parent
6078232af0
commit
9942c1d444
|
@ -266,6 +266,9 @@ bool NoIntroDBLoadClrMamePro(struct NoIntroDB* db, struct VFile* vf) {
|
|||
sqlite3_finalize(gameTable);
|
||||
sqlite3_finalize(romTable);
|
||||
|
||||
if (remainingInTransaction) {
|
||||
sqlite3_exec(db->db, "COMMIT;", NULL, NULL, NULL);
|
||||
}
|
||||
sqlite3_exec(db->db, "VACUUM", NULL, NULL, NULL);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in New Issue