From 7448e4e9a942cc8ea64315ba3084541af8e6c8a2 Mon Sep 17 00:00:00 2001 From: Matthew Cline Date: Mon, 26 Oct 2009 00:48:14 -0700 Subject: FR 1837856: note vaults generated in dump Include new dump section "vaults", which for game-end dumps (or any wizard-mode dumps) will include a list (by place) of all the vaults generated in the game. The savefile now includes a player-associated CrawlHashTable (you.props), which can be used for storing player information which doesn't need to be accessed efficiently. --- crawl-ref/source/tags.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'crawl-ref/source/tags.cc') diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc index 91fe0c0643..ab02149019 100644 --- a/crawl-ref/source/tags.cc +++ b/crawl-ref/source/tags.cc @@ -1020,6 +1020,8 @@ static void tag_construct_you(writer &th) std::string revision = "Git:"; revision += Version::Long(); marshallString(th, revision); + + you.props.write(th); } static void tag_construct_you_items(writer &th) @@ -1468,6 +1470,12 @@ static void tag_read_you(reader &th, char minorVersion) std::string rev_str = unmarshallString(th); UNUSED(rev_str); } + + if (minorVersion >= TAG_MINOR_YOU_PROP) + { + you.props.clear(); + you.props.read(th); + } } static void tag_read_you_items(reader &th, char minorVersion) -- cgit v1.2.3-54-g00ecf