diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-12 23:35:52 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-12 23:35:52 -0800 |
commit | d4f2b7214863b2a40ebcf69e7add113412f795b8 (patch) | |
tree | a0f1210a109371e69f83a283f8583c3ba6304c6a /dive.h | |
parent | ae49a8a4f7c277644a62b096585ee467f3cad5c7 (diff) | |
download | subsurface-d4f2b7214863b2a40ebcf69e7add113412f795b8.tar.gz |
Make special backup when switching XML versions
Since the last few dozen commits change the format in irreversible ways
and could therefore be destructive and lose data for testers of the
development version, let's try to be extra careful and create "special"
backup files that aren't overwritten by subsequent backups. At least this
way people can go back to the previous state.
Of course people using the git backend don't have to worry about this as
they always can go back to any earlier save.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'dive.h')
-rw-r--r-- | dive.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -48,6 +48,8 @@ extern "C" { #include <stdbool.h> #endif +extern int last_xml_version; + enum dive_comp_type {OC, CCR, PSCR, FREEDIVE, NUM_DC_TYPE}; // Flags (Open-circuit and Closed-circuit-rebreather) for setting dive computer type enum cylinderuse {OC_GAS, DILUENT, OXYGEN, NUM_GAS_USE}; // The different uses for cylinders |