Possible to differentiate between mod version when serializing?

Putmalk

Deity
Joined
Sep 26, 2010
Messages
2,652
Location
New York
I have to modify the serialization process for my newest version of my mod. Firaxis uses uiVersion but I assume that changes with each official patch...does anyone know of a way to capture the MOD version (version 4, version 5...etc.) so that I can safely take care of my new variables?
 
#define MY_SAVE_VERSION 1

and then change it every time you change the serialization code - after all you'll having to recompile the DLL anyway so one more #define change ain't going to break the bank ;)
 
#define MY_SAVE_VERSION 1

and then change it every time you change the serialization code - after all you'll having to recompile the DLL anyway so one more #define change ain't going to break the bank ;)

Thanks!!!!
 
Back
Top Bottom