all repos — mgba @ e81ed20a144be7e9952abc0b91d235cf0d11ad39

mGBA Game Boy Advance Emulator

src/util/nointro.h (view raw)

 1/* Copyright (c) 2013-2015 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 NOINTRO_H
 7#define NOINTRO_H
 8
 9#include "util/common.h"
10
11struct NoIntroGame {
12	const char* name;
13	const char* romName;
14	const char* description;
15	size_t size;
16	uint32_t crc32;
17	uint8_t md5[16];
18	uint8_t sha1[20];
19	bool verified;
20};
21
22struct NoIntroDB;
23struct VFile;
24
25struct NoIntroDB* NoIntroDBLoad(struct VFile* vf);
26void NoIntroDBDestroy(struct NoIntroDB* db);
27bool NoIntroDBLookupGameByCRC(const struct NoIntroDB* db, uint32_t crc32, struct NoIntroGame* game);
28
29#endif