When a variable is removed and we have the option to do something with the value, add a new option for that value to completely override an existing variables. Eg.
var = crayon_savefile_add_variable(details, NULL, CRAY_TYPE_U8, 1, &zero, sf_version); //Previously the prefered mines
var2 = crayon_savefile_add_variable(details, pref_mines, CRAY_TYPE_U16, 1, &zero, sf_version);
crayon_savefile_remove_variable(details, var, CRAY_TYPE_U8, CRAY_SF_REMOVE_CMD_REPLACE, var2, version);
So here we are just upgrading a variable from uint8_t to uint16_t (Like I wanted to with Minesweeper's pref mine count)
When a variable is removed and we have the option to do something with the value, add a new option for that value to completely override an existing variables. Eg.
So here we are just upgrading a variable from
uint8_t
touint16_t
(Like I wanted to with Minesweeper's pref mine count)