src/gba/cheats/gameshark.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_CHEATS_GAMESHARK_H
7#define GBA_CHEATS_GAMESHARK_H
8
9#include <mgba-util/common.h>
10
11CXX_GUARD_START
12
13extern const uint32_t GBACheatGameSharkSeeds[4];
14
15struct GBACheatSet;
16void GBACheatDecryptGameShark(uint32_t* op1, uint32_t* op2, const uint32_t* seeds);
17void GBACheatReseedGameShark(uint32_t* seeds, uint16_t params, const uint8_t* t1, const uint8_t* t2);
18void GBACheatSetGameSharkVersion(struct GBACheatSet* cheats, int version);
19bool GBACheatAddGameSharkRaw(struct GBACheatSet* cheats, uint32_t op1, uint32_t op2);
20int GBACheatGameSharkProbability(uint32_t op1, uint32_t op2);
21
22CXX_GUARD_END
23
24#endif