From 7ec6d985447b1826cd87f113852835ee7eebba8d Mon Sep 17 00:00:00 2001 From: SiboVG Date: Sat, 1 Jul 2023 13:36:54 +0200 Subject: [PATCH] Update file version --- .../sf/openrocket/file/openrocket/OpenRocketSaver.java | 9 +++++---- .../file/openrocket/importt/DocumentConfig.java | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/core/src/net/sf/openrocket/file/openrocket/OpenRocketSaver.java b/core/src/net/sf/openrocket/file/openrocket/OpenRocketSaver.java index b974de7a5..048db84c4 100644 --- a/core/src/net/sf/openrocket/file/openrocket/OpenRocketSaver.java +++ b/core/src/net/sf/openrocket/file/openrocket/OpenRocketSaver.java @@ -216,21 +216,22 @@ public class OpenRocketSaver extends RocketSaver { /* * NOTE: Remember to update the supported versions in DocumentConfig as well! * - * File version 1.8 is required for: + * File version 1.9 is required for: * - new-style positioning * - external/parallel booster stages * - external pods * - Rail Buttons + * - Flight event source saving * - * Otherwise use version 1.8. + * Otherwise use version 1.9. */ ///////////////// - // Version 1.8 // + // Version 1.9 // ///////////////// // for any new-style positioning: 'axialoffset', 'angleoffset', 'radiusoffset' tags // these tags are used for any RocketComponent child classes positioning... so... ALL the classes. - return FILE_VERSION_DIVISOR + 8; + return FILE_VERSION_DIVISOR + 9; } diff --git a/core/src/net/sf/openrocket/file/openrocket/importt/DocumentConfig.java b/core/src/net/sf/openrocket/file/openrocket/importt/DocumentConfig.java index dfecc84ab..6995c8210 100644 --- a/core/src/net/sf/openrocket/file/openrocket/importt/DocumentConfig.java +++ b/core/src/net/sf/openrocket/file/openrocket/importt/DocumentConfig.java @@ -52,7 +52,7 @@ import net.sf.openrocket.util.Reflection; class DocumentConfig { /* Remember to update OpenRocketSaver as well! */ - public static final String[] SUPPORTED_VERSIONS = { "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8" }; + public static final String[] SUPPORTED_VERSIONS = { "1.0", "1.1", "1.2", "1.3", "1.4", "1.5", "1.6", "1.7", "1.8", "1.9" }; /** * Divisor used in converting an integer version to the point-represented version.