mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-21 09:39:56 +00:00
Support reading bool GMST by ESM4
This commit is contained in:
parent
ee3956e4f2
commit
584c0dbcdc
@ -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…
x
Reference in New Issue
Block a user