diff options
author | Patric Stout <truebrain@openttd.org> | 2021-06-08 13:21:31 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-14 21:58:05 +0200 |
commit | 4600d289b5d12389137d36e57bfda09c26ed6caf (patch) | |
tree | beadd0344d657781fb3dc600065b25ffa40d9bc2 /src/sound/sdl2_s.cpp | |
parent | 909f3f25bd58ad2dbb658beeea80a9fcd1494302 (diff) | |
download | openttd-4600d289b5d12389137d36e57bfda09c26ed6caf.tar.xz |
Codechange: ability to store structs and list of structs in savegames
The commits following this will use this new functionality.
Currently, a few places do this manually. This has as drawback that
the Save() and Load() code need to be in sync, and that any change
can result in (old) savegames no longer loading. In general, it is
annoying code to maintain.
By putting everything in a description table, and use that for
both Save() and Load(), it becomes easier to see what is going on,
and hopefully less likely for people to make mistakes.
Diffstat (limited to 'src/sound/sdl2_s.cpp')
0 files changed, 0 insertions, 0 deletions