OpenTTD
|
Code handling saving and loading of newgrf config. More...
#include "../stdafx.h"
#include "../fios.h"
#include "saveload.h"
#include "newgrf_sl.h"
#include "../safeguards.h"
Go to the source code of this file.
Functions | |
void | Save_NewGRFMapping (const OverrideManagerBase &mapping) |
Save a GRF ID + local id -> OpenTTD's id mapping. | |
void | Load_NewGRFMapping (OverrideManagerBase &mapping) |
Load a GRF ID + local id -> OpenTTD's id mapping. | |
static void | Save_NGRF () |
static void | Load_NGRF_common (GRFConfig *&grfconfig) |
static void | Load_NGRF () |
static void | Check_NGRF () |
Variables | |
static const SaveLoad | _newgrf_mapping_desc [] |
Save and load the mapping between a spec and the NewGRF it came from. | |
static const SaveLoad | _grfconfig_desc [] |
const ChunkHandler | _newgrf_chunk_handlers [] |
Code handling saving and loading of newgrf config.
Definition in file newgrf_sl.cpp.
void Load_NewGRFMapping | ( | OverrideManagerBase & | mapping | ) |
Load a GRF ID + local id -> OpenTTD's id mapping.
mapping | The mapping to load. |
Definition at line 44 of file newgrf_sl.cpp.
References OverrideManagerBase::mapping_ID, OverrideManagerBase::ResetMapping(), SlErrorCorrupt(), SlIterateArray(), and SlObject().
void Save_NewGRFMapping | ( | const OverrideManagerBase & | mapping | ) |
Save a GRF ID + local id -> OpenTTD's id mapping.
mapping | The mapping to save. |
Definition at line 32 of file newgrf_sl.cpp.
References OverrideManagerBase::mapping_ID, and SlObject().
|
static |
Definition at line 60 of file newgrf_sl.cpp.
const ChunkHandler _newgrf_chunk_handlers[] |
|
static |
Save and load the mapping between a spec and the NewGRF it came from.
Definition at line 21 of file newgrf_sl.cpp.