Remove global definition of badCheatHandle

This commit is contained in:
wheremyfoodat 2024-01-27 20:38:17 +02:00
parent 31eea40ea5
commit 01b6380242
4 changed files with 19 additions and 23 deletions

View file

@ -9,8 +9,6 @@
// Forward-declare this since it's just passed and we don't want to include memory.hpp and increase compile time
class Memory;
constexpr u32 badCheatHandle = 0xFFFFFFFF;
class Cheats {
public:
enum class CheatType {
@ -35,6 +33,7 @@ class Cheats {
void clear();
bool haveCheats() const { return cheatsLoaded; }
static constexpr u32 badCheatHandle = 0xFFFFFFFF;
private:
ActionReplay ar; // An ActionReplay cheat machine for executing CTRPF codes

View file

@ -18,8 +18,7 @@
#include "panda_qt/text_editor.hpp"
#include "services/hid.hpp"
struct CheatMessage
{
struct CheatMessage {
u32 handle;
std::vector<uint8_t> cheat;
std::function<void(u32)> callback;