Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-06-15 | Change: rework several CH_RIFF chunks to use CH_ARRAY instead | Patric Stout | |
This adds two byte extra to those chunks, and might feel a bit silly at first. But in later changes we will prefix CH_ARRAY with a table header, and then this change shines. Without this, we could still add headers to these chunks, but any external reader wouldn't know if the CH_RIFF has them or not. This way is much more practical, as they are now more like any other chunk. | |||
2021-06-15 | Change: prefix SL_ARR with the length of the array | Patric Stout | |
This means that during loading we can validate that what is saved is also that what is expected. Additionally, this makes all list types similar to how they are stored on disk: First a gamma to indicate length, followed by the data. The size still depends on the type. | |||
2021-06-06 | Codechange: Remove FOR_ALL_CHUNK_HANDLERS | glx22 | |
Co-Authored-By: Patric Stout <truebrain@openttd.org> | |||
2021-05-31 | Codechange: C++-ify lists for SaveLoad (#9323) | Patric Stout | |
Basically, this changes "SaveLoad *" to either: 1) "SaveLoadTable" if a list of SaveLoads was meant 2) "SaveLoad &" if a single entry was meant As added bonus, this removes SL_END / SLE_END / SLEG_END. This also adds core/span.hpp, a "std::span"-lite. | |||
2019-11-10 | Cleanup: Removed SVN headers | S. D. Cloudt | |
2019-04-15 | Codechange: Replace SmallStackSafeStackAlloc with std::array. | Michael Lutz | |
The only port that ever used it to make heap allocations instead of stack ones was the NDS port, which got thrown out some time ago. | |||
2019-04-13 | Cleanup: Fix alignment after NULL -> nullptr change. | peter1138 | |
2019-04-10 | Codechange: Use null pointer literal instead of the NULL macro | Henry Wilson | |
2019-02-02 | Codechange: Convert saveload numbers to enum values. | Peter Nelson | |
(This was mostly achieved with a few in-place regexes) | |||
2018-07-26 | Change: Extend map array by 2 bytes with a uint16. | Peter Nelson | |
2014-09-21 | (svn r26878) -Change: move m6 to TileExtended to keep Tile 8 bytes and thus ↵ | rubidium | |
better alignable | |||
2014-09-21 | (svn r26873) -Change: split type_height into a type and height array (ic111) | rubidium | |
2014-04-23 | (svn r26482) -Codechange: add an include that allows us to undefine/redefine ↵ | rubidium | |
"unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values | |||
2010-11-21 | (svn r21284) -Codechange: Rename CheckSavegameVersion() to ↵ | alberth | |
IsSavegameVersionBefore(). | |||
2010-08-26 | (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to ↵ | rubidium | |
some headers | |||
2010-06-13 | (svn r19976) -Add: Read mapsize during SL_LOAD_CHECK. | frosch | |
2010-06-13 | (svn r19973) -Codechange: Add another procedure to chunk handlers for ↵ | frosch | |
checking savegames (empty for now). | |||
2010-05-13 | (svn r19812) -Codechange: give some unnamed enums a name or, in case they ↵ | rubidium | |
consisted of unrelated values use static const (u)int | |||
2009-08-21 | (svn r17248) -Fix: add GPL license notice where appropriate | rubidium | |
2009-05-17 | (svn r16338) -Codechange: split loading of references to two phases | smatz | |
In the first phase, indexes are stored. In the second phase, indexes are checked for validity and converted to pointers | |||
2009-01-31 | (svn r15299) -Cleanup: remove many redundant includes | smatz | |
2009-01-04 | (svn r14829) -Fix (r14828): forgot CH_LAST | smatz | |
2009-01-04 | (svn r14828) -Codechange: move most of save/load-specific code to separate files | smatz | |