State-file recognition and restore repeat JSON parsing, migration, validation, and ZIP loading. Invalid state JSON can fall through to another import handler.
Use one reader that distinguishes non-state files, valid states, and recognizable but invalid states. Pass parsed results to restore and validate before changing the scene.
Cover JSON, ZIP, legacy states, malformed states, and configuration JSON with overlapping fields.
State-file recognition and restore repeat JSON parsing, migration, validation, and ZIP loading. Invalid state JSON can fall through to another import handler.
Use one reader that distinguishes non-state files, valid states, and recognizable but invalid states. Pass parsed results to restore and validate before changing the scene.
Cover JSON, ZIP, legacy states, malformed states, and configuration JSON with overlapping fields.