12 #include "../stdafx.h" 13 #include "../cheat_type.h" 17 #include "../safeguards.h" 27 Cheat *cht_last = &cht[count];
30 for (; cht != cht_last; cht++) {
46 for (uint i = 0; i < count; i++) {
static void Save_CHTS()
Save the cheat values.
static void Load_CHTS()
Load the cheat values.
void NORETURN SlErrorCorrupt(const char *msg)
Error handler for corrupt savegames.
bool been_used
has this cheat been used before?
size_t SlGetFieldLength()
Get the length of the current object.
Functions/types related to saving and loading games.
bool value
tells if the bool cheat is active or not
byte SlReadByte()
Wrapper for reading a byte from the buffer.
Info about each of the cheats.
Handlers and description of chunk.
const ChunkHandler _cheat_chunk_handlers[]
Chunk handlers related to cheats.
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.
Last chunk in this array.
Cheats _cheats
All the cheats.