Expand description
Version-peeking helper for the save migration chain.
Splitting this out of mod.rs keeps the dispatch in super::load_from_str
readable and gives version detection its own focused test surface.
Functions§
- peek_
version - Read the top-level
"version"field from a save JSON without deserializing the rest of the document. Returns1if the field is absent, non-numeric, or the JSON itself is malformed — pre-versioned saves (everything written bymainbefore this branch) are V1 by definition.