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 "gba/cheats.h"
10
11extern const uint32_t GBACheatGameSharkSeeds[4];
12
13void GBACheatDecryptGameShark(uint32_t* op1, uint32_t* op2, const uint32_t* seeds);
14void GBACheatReseedGameShark(uint32_t* seeds, uint16_t params, const uint8_t* t1, const uint8_t* t2);
15void GBACheatSetGameSharkVersion(struct GBACheatSet* cheats, int version);
16bool GBACheatAddGameSharkRaw(struct GBACheatSet* cheats, uint32_t op1, uint32_t op2);
17
18#endif