src/gba/gba-overrides.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 GBA_OVERRIDES_H
7#define GBA_OVERRIDES_H
8
9#include "util/common.h"
10
11#include "gba-savedata.h"
12
13struct GBACartridgeOverride {
14 char id[4];
15 enum SavedataType savetype;
16 int hardware;
17 uint32_t idleLoop;
18};
19
20struct Configuration;
21bool GBAOverrideFind(const struct Configuration*, struct GBACartridgeOverride* override);
22void GBAOverrideSave(struct Configuration*, const struct GBACartridgeOverride* override);
23
24struct GBA;
25void GBAOverrideApply(struct GBA*, const struct GBACartridgeOverride*);
26
27#endif