all repos — mgba @ 9942c1d44440d22ad0e7fd5ec58b3bdbe4efd92d

mGBA Game Boy Advance Emulator

No-Intro: Make sure to commit pending transactions
Jeffrey Pfau jeffrey@endrift.com
Wed, 11 Jan 2017 23:12:23 -0800
commit

9942c1d44440d22ad0e7fd5ec58b3bdbe4efd92d

parent

6078232af0f781fe9f2399b0f30b1ec2917d9d8b

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/feature/sqlite3/no-intro.csrc/feature/sqlite3/no-intro.c

@@ -266,6 +266,9 @@

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;