all repos — mgba @ 56107e616ff54b5a83668ac268db6245b4620807

mGBA Game Boy Advance Emulator

src/feature/sqlite3/no-intro.h (view raw)

 1/* Copyright (c) 2013-2017 Jeffrey Pfau
 2 *
 3 * This Source Code Form is subject to the terms of the Mozilla Public
 4 * License, v. 2.0. If a copy of the MPL was not distributed with this
 5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 6#ifndef NO_INTRO_H
 7#define NO_INTRO_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13struct NoIntroGame {
14	const char* name;
15	const char* romName;
16	size_t size;
17	uint32_t crc32;
18	uint8_t md5[16];
19	uint8_t sha1[20];
20	bool verified;
21};
22
23struct NoIntroDB;
24struct VFile;
25
26struct NoIntroDB* NoIntroDBLoad(const char* path);
27bool NoIntroDBLoadClrMamePro(struct NoIntroDB* db, struct VFile* vf);
28void NoIntroDBDestroy(struct NoIntroDB* db);
29bool NoIntroDBLookupGameByCRC(const struct NoIntroDB* db, uint32_t crc32, struct NoIntroGame* game);
30
31CXX_GUARD_END
32
33#endif