From 584c0dbcdcd12edc64259015b8849e48881de181 Mon Sep 17 00:00:00 2001 From: elsid Date: Wed, 17 May 2023 18:35:55 +0200 Subject: [PATCH] Support reading bool GMST by ESM4 --- components/esm4/loadgmst.cpp | 6 ++++++ components/esm4/loadgmst.hpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/components/esm4/loadgmst.cpp b/components/esm4/loadgmst.cpp index e2e4694922..7b0d940636 100644 --- a/components/esm4/loadgmst.cpp +++ b/components/esm4/loadgmst.cpp @@ -15,6 +15,12 @@ namespace ESM4 const char type = editorId[0]; switch (type) { + case 'b': + { + std::uint32_t value = 0; + reader.get(value); + return value != 0; + } case 'i': { std::int32_t value = 0; diff --git a/components/esm4/loadgmst.hpp b/components/esm4/loadgmst.hpp index 62a5071eb3..552e8e6395 100644 --- a/components/esm4/loadgmst.hpp +++ b/components/esm4/loadgmst.hpp @@ -13,7 +13,7 @@ namespace ESM4 struct GameSetting { - using Data = std::variant; + using Data = std::variant; FormId mFormId; // from the header std::uint32_t mFlags; // from the header, see enum type RecordFlag for details