mirror of https://github.com/mgba-emu/mgba.git
No-Intro: Index database on MD5 and SHA1 too
This commit is contained in:
parent
b12858e974
commit
17cf2e6237
|
@ -47,7 +47,9 @@ struct NoIntroDB* NoIntroDBLoad(const char* path) {
|
|||
"flags INTEGER DEFAULT 0,"
|
||||
"gid INTEGER NOT NULL REFERENCES games(gid) ON DELETE CASCADE"
|
||||
");\n"
|
||||
"CREATE INDEX IF NOT EXISTS crc32 ON roms (crc32);";
|
||||
"CREATE INDEX IF NOT EXISTS crc32 ON roms (crc32);\n"
|
||||
"CREATE INDEX IF NOT EXISTS md5 ON roms (md5);\n"
|
||||
"CREATE INDEX IF NOT EXISTS sha1 ON roms (sha1);\n";
|
||||
if (sqlite3_exec(db->db, createTables, NULL, NULL, NULL)) {
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue