2020-07-04 08:22:20 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
struct cheatseq_t
|
|
|
|
{
|
|
|
|
const char *Sequence;
|
2020-09-02 22:29:17 +00:00
|
|
|
const char* ccmd;
|
2020-07-04 08:22:20 +00:00
|
|
|
bool (*Handler)(cheatseq_t *);
|
|
|
|
uint8_t DontCheck;
|
2020-09-02 23:32:51 +00:00
|
|
|
uint8_t Param;
|
2020-07-04 08:22:20 +00:00
|
|
|
// This is working data for processing the cheat
|
|
|
|
uint8_t CurrentArg;
|
|
|
|
uint8_t Args[6];
|
2020-07-04 13:51:02 +00:00
|
|
|
const char *Pos;
|
2020-07-04 08:22:20 +00:00
|
|
|
};
|
|
|
|
struct event_t;
|
|
|
|
|
|
|
|
bool Cheat_Responder(event_t* ev);
|
|
|
|
void SetCheats(cheatseq_t *cht, int count);
|
2020-07-04 13:51:02 +00:00
|
|
|
void PlaybackCheat(const char* p);
|
2020-09-02 23:32:51 +00:00
|
|
|
bool SendGenericCheat(cheatseq_t* cheat);
|
|
|
|
|