all repos — mgba @ 7149dd3102a6bbb7f73cae7da0c01dc784b0f601

mGBA Game Boy Advance Emulator

src/gba/supervisor/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};
21
22struct Configuration;
23bool GBAOverrideFind(const struct Configuration*, struct GBACartridgeOverride* override);
24void GBAOverrideSave(struct Configuration*, const struct GBACartridgeOverride* override);
25
26struct GBA;
27void GBAOverrideApply(struct GBA*, const struct GBACartridgeOverride*);
28
29#endif