|
@@ -7,25 +7,25 @@
|
|
|
* <li>initialize the writer by creating a temporary memory-buffer for it
|
|
|
* <li>go through all to-be saved elements, each 'chunk' (ChunkHandler) prefixed by a label
|
|
|
* <li>use their description array (SaveLoad) to know what elements to save and in what version
|
|
|
* of the game it was active (used when loading)
|
|
|
* <li>write all data byte-by-byte to the temporary buffer so it is endian-safe
|
|
|
* <li>when the buffer is full; flush it to the output (eg save to file) (_sl.buf, _sl.bufp, _sl.bufe)
|
|
|
* <li>repeat this until everything is done, and flush any remaining output to file
|
|
|
* </ol>
|
|
|
*/
|
|
|
#include "stdafx.h"
|
|
|
#include "openttd.h"
|
|
|
#include "debug.h"
|
|
|
#include "station.h"
|
|
|
#include "station_base.h"
|
|
|
#include "thread.h"
|
|
|
#include "town.h"
|
|
|
#include "saveload.h"
|
|
|
#include "network/network.h"
|
|
|
#include "variables.h"
|
|
|
#include "window_func.h"
|
|
|
#include "strings_func.h"
|
|
|
#include "gfx_func.h"
|
|
|
#include "core/alloc_func.hpp"
|
|
|
#include "functions.h"
|
|
|
#include "core/endian_func.hpp"
|
|
|
#include "vehicle_base.h"
|