Skip to content

Commit

Permalink
Engine: increased couple of save versions for color props update again
Browse files Browse the repository at this point in the history
Note, the similar up was in 8a5e3ce
  • Loading branch information
ivan-mogilko committed Jan 15, 2025
1 parent 728d89a commit 9edf2cd
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions Common/ac/characterinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ enum CharacterSvgVersion
kCharSvgVersion_400_03 = 4000003, // compat with kCharSvgVersion_36115
kCharSvgVersion_400_09 = 4000009, // 32-bit color properties
kCharSvgVersion_400_13 = 4000013, // compat with kCharSvgVersion_36205
kCharSvgVersion_400_14 = 4000014, // proper ARGB color properties
};


Expand Down
2 changes: 1 addition & 1 deletion Common/gui/guidefines.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ enum GuiSvgVersion
kGuiSvgVersion_40008 = 4000008, // custom properties
kGuiSvgVersion_40009 = 4000009, // 32-bit color properties
kGuiSvgVersion_40010 = 4000010, // compat with kGuiSvgVersion_36200-36202

kGuiSvgVersion_40014 = 4000014, // proper ARGB color properties
};

// Style of GUI drawing in disabled state
Expand Down
3 changes: 2 additions & 1 deletion Engine/ac/gamestate.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ enum GameStateSvgVersion
kGSSvgVersion_361_14 = 4,
kGSSvgVersion_400 = 4000000,
kGSSvgVersion_400_03 = 4000003, // compat w kGSSvgVersion_361_14
kGSSvgVersion_400_08 = 4000008 // palette component range 64->256
kGSSvgVersion_400_08 = 4000008, // palette component range 64->256
kGSSvgVersion_400_14 = 4000014 // 32-bit ARGB color properties
};


Expand Down
6 changes: 3 additions & 3 deletions Engine/game/savegame_components.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1702,7 +1702,7 @@ ComponentHandler ComponentHandlers[] =
// at which a change was introduced, represented as NN,NN,NN,NN.
{
"Game State",
kGSSvgVersion_400_08,
kGSSvgVersion_400_14,
kGSSvgVersion_400,
kSaveCmp_GameState,
WriteGameState,
Expand All @@ -1720,7 +1720,7 @@ ComponentHandler ComponentHandlers[] =
},
{
"Characters",
kCharSvgVersion_400_13,
kCharSvgVersion_400_14,
kCharSvgVersion_400,
kSaveCmp_Characters,
WriteCharacters,
Expand All @@ -1738,7 +1738,7 @@ ComponentHandler ComponentHandlers[] =
},
{
"GUI",
kGuiSvgVersion_40010,
kGuiSvgVersion_40014,
kGuiSvgVersion_Initial,
kSaveCmp_GUI,
WriteGUI,
Expand Down

0 comments on commit 9edf2cd

Please sign in to comment.