SpaceWarpDev / SpaceWarp

A C# modding API for KSP2
MIT License
91 stars 38 forks source link

Fix mods save data loading when reverting to VAB #288

Closed rockfactory closed 9 months ago

rockfactory commented 9 months ago

FlowActions used to serialize/deserialize in memory are different from the ones used to load and save the game from JSON files. With this PR I introduce two new Harmony patches to handle in-memory serialization & deserialization.

Common logic has been refactored in a central method, to avoid duplication between the two paths

cheese3660 commented 9 months ago

LGTM