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
11CXX_GUARD_START
12
13struct NoIntroGame {
14 const char* name;
15 const char* romName;
16 const char* description;
17 size_t size;
18 uint32_t crc32;
19 uint8_t md5[16];
20 uint8_t sha1[20];
21 bool verified;
22};
23
24struct NoIntroDB;
25struct VFile;
26
27struct NoIntroDB* NoIntroDBLoad(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