2020-12-25 02:18:36 +00:00
|
|
|
#pragma once
|
2020-07-27 07:38:02 +00:00
|
|
|
|
2020-12-22 08:42:57 +00:00
|
|
|
#include "util/types.hpp"
|
|
|
|
|
|
|
|
#include <string>
|
2020-07-27 07:38:02 +00:00
|
|
|
|
|
|
|
enum class cheat_type : u8
|
|
|
|
{
|
|
|
|
unsigned_8_cheat,
|
|
|
|
unsigned_16_cheat,
|
|
|
|
unsigned_32_cheat,
|
|
|
|
unsigned_64_cheat,
|
|
|
|
signed_8_cheat,
|
|
|
|
signed_16_cheat,
|
|
|
|
signed_32_cheat,
|
|
|
|
signed_64_cheat,
|
|
|
|
max
|
|
|
|
};
|
|
|
|
|
|
|
|
constexpr u8 cheat_type_max = static_cast<u8>(cheat_type::max);
|
|
|
|
|
|
|
|
struct cheat_info
|
|
|
|
{
|
2021-04-03 16:38:02 +00:00
|
|
|
std::string game{};
|
|
|
|
std::string description{};
|
2020-07-27 07:38:02 +00:00
|
|
|
cheat_type type = cheat_type::max;
|
|
|
|
u32 offset{};
|
2021-04-03 16:38:02 +00:00
|
|
|
std::string red_script{};
|
2020-07-27 07:38:02 +00:00
|
|
|
|
|
|
|
bool from_str(const std::string& cheat_line);
|
|
|
|
std::string to_str() const;
|
|
|
|
};
|