src/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
13#define IDLE_LOOP_NONE 0xFFFFFFFF
14
15struct GBACartridgeOverride {
16 char id[4];
17 enum SavedataType savetype;
18 int hardware;
19 uint32_t idleLoop;
20 bool mirroring;
21};
22
23struct Configuration;
24bool GBAOverrideFind(const struct Configuration*, struct GBACartridgeOverride* override);
25void GBAOverrideSave(struct Configuration*, const struct GBACartridgeOverride* override);
26
27struct GBA;
28void GBAOverrideApply(struct GBA*, const struct GBACartridgeOverride*);
29void GBAOverrideApplyDefaults(struct GBA*);
30
31#endif