all repos — mgba @ b61b8a0d2be4d4ac39b497b4ce85259250eec3d7

mGBA Game Boy Advance Emulator

include/mgba/internal/gb/overrides.h (view raw)

 1/* Copyright (c) 2013-2016 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 GB_OVERRIDES_H
 7#define GB_OVERRIDES_H
 8
 9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13#include <mgba/gb/interface.h>
14
15struct GBCartridgeOverride {
16	int headerCrc32;
17	enum GBModel model;
18	enum GBMemoryBankControllerType mbc;
19};
20
21struct Configuration;
22bool GBOverrideFind(const struct Configuration*, struct GBCartridgeOverride* override);
23void GBOverrideSave(struct Configuration*, const struct GBCartridgeOverride* override);
24
25struct GB;
26void GBOverrideApply(struct GB*, const struct GBCartridgeOverride*);
27void GBOverrideApplyDefaults(struct GB*);
28
29CXX_GUARD_END
30
31#endif