mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 08:09:46 +00:00
Support reading bool GMST by ESM4
This commit is contained in:
parent
ee3956e4f2
commit
584c0dbcdc
2 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace ESM4
|
|||
|
||||
struct GameSetting
|
||||
{
|
||||
using Data = std::variant<float, std::int32_t, std::string>;
|
||||
using Data = std::variant<bool, float, std::int32_t, std::string>;
|
||||
|
||||
FormId mFormId; // from the header
|
||||
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
|
||||
|
|
Loading…
Reference in a new issue