Go to the documentation of this file.
10 #include "../stdafx.h"
11 #include "../cheat_type.h"
15 #include "../safeguards.h"
25 Cheat *cht_last = &cht[count];
28 for (; cht != cht_last; cht++) {
44 for (uint i = 0; i < count; i++) {
static void Load_CHTS()
Load the cheat values.
@ CH_LAST
Last chunk in this array.
Handlers and description of chunk.
void SlSetLength(size_t length)
Sets the length of either a RIFF object or the number of items in an array.
void SlWriteByte(byte b)
Wrapper for writing a byte to the dumper.
Info about each of the cheats.
const ChunkHandler _cheat_chunk_handlers[]
Chunk handlers related to cheats.
Cheats _cheats
All the cheats.
bool value
tells if the bool cheat is active or not
size_t SlGetFieldLength()
Get the length of the current object.
static void Save_CHTS()
Save the cheat values.
void NORETURN SlErrorCorrupt(const char *msg)
Error handler for corrupt savegames.
byte SlReadByte()
Wrapper for reading a byte from the buffer.
bool been_used
has this cheat been used before?