OpenTTD Source  13.2.1
gamelog_sl.cpp File Reference
#include "../stdafx.h"
#include "saveload.h"
#include "compat/gamelog_sl_compat.h"
#include "../gamelog_internal.h"
#include "../fios.h"
#include "../safeguards.h"

Go to the source code of this file.

Data Structures

class  SlGamelogMode
 
class  SlGamelogRevision
 
class  SlGamelogOldver
 
class  SlGamelogSetting
 
class  SlGamelogGrfadd
 
class  SlGamelogGrfrem
 
class  SlGamelogGrfcompat
 
class  SlGamelogGrfparam
 
class  SlGamelogGrfmove
 
class  SlGamelogGrfbug
 
class  SlGamelogEmergency
 
class  SlGamelogAction
 
struct  GLOGChunkHandler
 

Variables

static bool _is_emergency_save = true
 
static const SaveLoad _gamelog_desc []
 
static const GLOGChunkHandler GLOG
 
static const ChunkHandlerRef gamelog_chunk_handlers []
 
const ChunkHandlerTable _gamelog_chunk_handlers (gamelog_chunk_handlers)
 

Detailed Description

Code handling saving and loading of gamelog data

Definition in file gamelog_sl.cpp.

Variable Documentation

◆ _gamelog_desc

const SaveLoad _gamelog_desc[]
static
Initial value:

Definition at line 345 of file gamelog_sl.cpp.

◆ gamelog_chunk_handlers

const ChunkHandlerRef gamelog_chunk_handlers[]
static
Initial value:
= {
GLOG,
}

Definition at line 411 of file gamelog_sl.cpp.

SLV_RIFF_TO_ARRAY
@ SLV_RIFF_TO_ARRAY
294 PR#9375 Changed many CH_RIFF chunks to CH_ARRAY chunks.
Definition: saveload.h:336
SL_MIN_VERSION
@ SL_MIN_VERSION
First savegame version.
Definition: saveload.h:35
SLV_U64_TICK_COUNTER
@ SLV_U64_TICK_COUNTER
300 PR#10035 Make _tick_counter 64bit to avoid wrapping.
Definition: saveload.h:344
SLE_CONDVAR
#define SLE_CONDVAR(base, variable, type, from, to)
Storage of a variable in some savegame versions.
Definition: saveload.h:708
SL_MAX_VERSION
@ SL_MAX_VERSION
Highest possible saveload version.
Definition: saveload.h:348
SlGamelogAction
Definition: gamelog_sl.cpp:281
LoggedAction
Contains information about one logged action that caused at least one logged change.
Definition: gamelog_internal.h:80
SLEG_STRUCTLIST
#define SLEG_STRUCTLIST(name, handler)
Storage of a list of structs in every savegame version.
Definition: saveload.h:1005