all repos — mgba @ f7ac90d74eba6bc556b609bb788e5a9d84926968

mGBA Game Boy Advance Emulator

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