mirror of
https://github.com/OpenMW/openmw.git
synced 2025-04-15 22:06:45 +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];
|
const char type = editorId[0];
|
||||||
switch (type)
|
switch (type)
|
||||||
{
|
{
|
||||||
|
case 'b':
|
||||||
|
{
|
||||||
|
std::uint32_t value = 0;
|
||||||
|
reader.get(value);
|
||||||
|
return value != 0;
|
||||||
|
}
|
||||||
case 'i':
|
case 'i':
|
||||||
{
|
{
|
||||||
std::int32_t value = 0;
|
std::int32_t value = 0;
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace ESM4
|
||||||
|
|
||||||
struct GameSetting
|
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
|
FormId mFormId; // from the header
|
||||||
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
|
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details
|
||||||
|
|
Loading…
Reference in a new issue