all repos — mgba @ c662b59e9942bfffd69ed6754cc334de86f89e63

mGBA Game Boy Advance Emulator

src/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 "util/common.h"
10
11#include "gb/interface.h"
12
13struct GBCartridgeOverride {
14	int headerCrc32;
15	enum GBModel model;
16	enum GBMemoryBankControllerType mbc;
17};
18
19struct Configuration;
20bool GBOverrideFind(const struct Configuration*, struct GBCartridgeOverride* override);
21void GBOverrideSave(struct Configuration*, const struct GBCartridgeOverride* override);
22
23struct GB;
24void GBOverrideApply(struct GB*, const struct GBCartridgeOverride*);
25void GBOverrideApplyDefaults(struct GB*);
26
27#endif