src/gb/cheats.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_CHEATS_H
7#define GB_CHEATS_H
8
9#include "util/common.h"
10
11#include "core/cheats.h"
12#include "util/vector.h"
13
14#define MAX_ROM_PATCHES 4
15
16enum GBACheatType {
17 GB_CHEAT_AUTODETECT,
18 GB_CHEAT_GAMESHARK,
19 GB_CHEAT_GAME_GENIE,
20 GB_CHEAT_VBA
21};
22
23struct GBCheatPatch {
24 uint16_t address;
25 int8_t newValue;
26 int8_t oldValue;
27 bool applied;
28 bool exists;
29};
30
31struct GBCheatSet {
32 struct mCheatSet d;
33};
34
35struct mCheatDevice* GBCheatDeviceCreate(void);
36
37#endif