OpenTTD
Functions | Variables
gamelog_sl.cpp File Reference

Code handling saving and loading of gamelog data. More...

#include "../stdafx.h"
#include "../gamelog_internal.h"
#include "../fios.h"
#include "saveload.h"
#include "../safeguards.h"

Go to the source code of this file.

Functions

 assert_compile (lengthof(_glog_desc)==GLCT_END)
static void Load_GLOG_common (LoggedAction *&gamelog_action, uint &gamelog_actions)
static void Save_GLOG ()
static void Load_GLOG ()
static void Check_GLOG ()

Variables

static const SaveLoad _glog_action_desc []
static const SaveLoad _glog_mode_desc []
static const SaveLoad _glog_revision_desc []
static const SaveLoad _glog_oldver_desc []
static const SaveLoad _glog_setting_desc []
static const SaveLoad _glog_grfadd_desc []
static const SaveLoad _glog_grfrem_desc []
static const SaveLoad _glog_grfcompat_desc []
static const SaveLoad _glog_grfparam_desc []
static const SaveLoad _glog_grfmove_desc []
static const SaveLoad _glog_grfbug_desc []
static const SaveLoad _glog_emergency_desc []
static const SaveLoad *const _glog_desc []
const ChunkHandler _gamelog_chunk_handlers []

Detailed Description

Code handling saving and loading of gamelog data.

Definition in file gamelog_sl.cpp.

Variable Documentation

const ChunkHandler _gamelog_chunk_handlers[]
Initial value:
{
{ 'GLOG', Save_GLOG, Load_GLOG, NULL, Check_GLOG, CH_RIFF | CH_LAST }
}
const SaveLoad _glog_action_desc[]
static
Initial value:
{
SLE_VAR(LoggedAction, tick, SLE_UINT16),
}

Definition at line 20 of file gamelog_sl.cpp.

const SaveLoad* const _glog_desc[]
static
Initial value:
{
_glog_mode_desc,
_glog_revision_desc,
_glog_oldver_desc,
_glog_setting_desc,
_glog_grfadd_desc,
_glog_grfrem_desc,
_glog_grfcompat_desc,
_glog_grfparam_desc,
_glog_grfmove_desc,
_glog_grfbug_desc,
_glog_emergency_desc,
}

Definition at line 91 of file gamelog_sl.cpp.

const SaveLoad _glog_emergency_desc[]
static
Initial value:
{
}

Definition at line 87 of file gamelog_sl.cpp.

const SaveLoad _glog_grfadd_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfadd.grfid, SLE_UINT32 ),
SLE_ARR(LoggedChange, grfadd.md5sum, SLE_UINT8, 16),
}

Definition at line 52 of file gamelog_sl.cpp.

const SaveLoad _glog_grfbug_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfbug.data, SLE_UINT64),
SLE_VAR(LoggedChange, grfbug.grfid, SLE_UINT32),
SLE_VAR(LoggedChange, grfbug.bug, SLE_UINT8),
}

Definition at line 80 of file gamelog_sl.cpp.

const SaveLoad _glog_grfcompat_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfcompat.grfid, SLE_UINT32 ),
SLE_ARR(LoggedChange, grfcompat.md5sum, SLE_UINT8, 16),
}

Definition at line 63 of file gamelog_sl.cpp.

const SaveLoad _glog_grfmove_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfmove.grfid, SLE_UINT32),
SLE_VAR(LoggedChange, grfmove.offset, SLE_INT32),
}

Definition at line 74 of file gamelog_sl.cpp.

const SaveLoad _glog_grfparam_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfparam.grfid, SLE_UINT32),
}

Definition at line 69 of file gamelog_sl.cpp.

const SaveLoad _glog_grfrem_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, grfrem.grfid, SLE_UINT32),
}

Definition at line 58 of file gamelog_sl.cpp.

const SaveLoad _glog_mode_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, mode.mode, SLE_UINT8),
SLE_VAR(LoggedChange, mode.landscape, SLE_UINT8),
}

Definition at line 25 of file gamelog_sl.cpp.

const SaveLoad _glog_oldver_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, oldver.type, SLE_UINT32),
SLE_VAR(LoggedChange, oldver.version, SLE_UINT32),
}

Definition at line 39 of file gamelog_sl.cpp.

const SaveLoad _glog_revision_desc[]
static
Initial value:
{
SLE_VAR(LoggedChange, revision.newgrf, SLE_UINT32),
SLE_VAR(LoggedChange, revision.slver, SLE_UINT16),
SLE_VAR(LoggedChange, revision.modified, SLE_UINT8),
}

Definition at line 31 of file gamelog_sl.cpp.

const SaveLoad _glog_setting_desc[]
static
Initial value:
{
SLE_STR(LoggedChange, setting.name, SLE_STR, 128),
SLE_VAR(LoggedChange, setting.oldval, SLE_INT32),
SLE_VAR(LoggedChange, setting.newval, SLE_INT32),
}

Definition at line 45 of file gamelog_sl.cpp.