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