From de605186315dda73345c76ee3012b92a31db03ac Mon Sep 17 00:00:00 2001 From: "S. Kozyr" Date: Sat, 16 Sep 2023 14:25:44 +0300 Subject: [PATCH] Revert "Hack to read new KMB format" This reverts commit 7d8811ba1a659856e15bdafa0f475a13a1940f04. Signed-off-by: S. Kozyr --- kml/header_binary.hpp | 2 +- kml/types.hpp | 2 +- kml/types_v8.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kml/header_binary.hpp b/kml/header_binary.hpp index d186b1ee2e..fd17f7021d 100644 --- a/kml/header_binary.hpp +++ b/kml/header_binary.hpp @@ -68,7 +68,7 @@ struct Header bool HasCompilationsSection() const { - return static_cast(m_version) > static_cast(Version::V8); + return static_cast(m_version) > static_cast(Version::V7); } Version m_version = Version::Latest; diff --git a/kml/types.hpp b/kml/types.hpp index 19dfeaac52..c02a84ea14 100644 --- a/kml/types.hpp +++ b/kml/types.hpp @@ -388,7 +388,7 @@ struct TrackData struct CategoryData { DECLARE_VISITOR_AND_DEBUG_PRINT(CategoryData, visitor(m_id, "id"), - //visitor(m_compilationId, "compilationId"), + visitor(m_compilationId, "compilationId"), visitor(m_type, "type"), visitor(m_name, "name"), visitor(m_imageUrl, "imageUrl"), diff --git a/kml/types_v8.hpp b/kml/types_v8.hpp index bd58d04819..260337daa2 100644 --- a/kml/types_v8.hpp +++ b/kml/types_v8.hpp @@ -21,7 +21,7 @@ struct BookmarkDataV8 visitor(m_visible, "visible"), visitor(m_nearestToponym, "nearestToponym"), visitor(m_properties, "properties"), - //visitor(m_compilations, "compilations"), + visitor(m_compilations, "compilations"), VISITOR_COLLECTABLE) DECLARE_COLLECTABLE(LocalizableStringIndex, m_name, m_description, m_customName,