Revision 46ea34b2
Added by danij over 10 years ago
Files
- added
- modified
- copied
- renamed
- deleted
- doomsday
- api
- api_base.h (diff)
- apis.h (diff)
- client
- libdeng2
- plugins
- common
- common.pri (diff)
- include
- g_common.h (diff)
- gamerules.h (diff)
- gamestatereader.h (diff)
- gamestatewriter.h (diff)
- p_saveio.h (diff)
- savedsessionrepository.h
- saveslots.h (diff)
- sessionmetadata.h
- src
- g_game.cpp (diff)
- gamerules.cpp (diff)
- gamestatereader.cpp (diff)
- gamestatewriter.cpp (diff)
- hu_menu.cpp (diff)
- p_saveg.cpp (diff)
- p_saveio.cpp (diff)
- savedsessionrepository.cpp
- saveslots.cpp (diff)
- sessionmetadata.cpp
- doom
- doom64
- src
- d_api.c (diff)
- d_main.cpp (diff)
- d_refresh.c (diff)
- p_enemy.c (diff)
- p_inter.c (diff)
- p_mobj.c (diff)
- st_stuff.c (diff)
- wi_stuff.c (diff)
- src
- heretic
- hexen
- src
- a_action.c (diff)
- h2_main.cpp (diff)
- hrefresh.c (diff)
- in_lude.c (diff)
- m_cheat.c (diff)
- p_enemy.c (diff)
- p_inter.c (diff)
- p_maputl.c (diff)
- p_mobj.c (diff)
- p_pspr.c (diff)
- p_spec.c (diff)
- p_telept.c (diff)
- p_things.c (diff)
- st_stuff.c (diff)
- x_api.c (diff)
- src
- common
- server
- api
libdeng2|SavedSession|SavedSessionRepository: Moved the saved session repository into libdeng2, revised metadata
Saved session metadata is now represented with de::Record and the game
rules are converted to/from this representation as needed when a saved
session is written/read.
ResourceSystem owns the repository (which in turn has ownership of the
saved sessions).
While the code builds without error it most certainly does not yet work.
There is still much to be done here:
- Saved sessions are not available in Ring Zero because reading of the
metadata currently depends on the game state reader(s) which are only
available when a game is loaded.
- Existing savegames are not found because the file extension (and, in
Hexen's case the /runtime subdirectory) is not known.
- SavedSession assumes that saved state is split into multiple files,
with the metadata and game state separated from the map state(s), which
use additional files (similar to Hexen).
TODO: Extract vanilla game state interpretation into a new command line
app which simply converts the given file set into a new savegame format
supported by this system.
TODO: Split the serialized map state for Doom/Heretic savegames into
separate files and utilize a common engine-side logic for reading the
metadata from the game state file.