mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-29 03:36:40 +00:00
Support unsigned int GMSTs
This commit is contained in:
parent
891be9744d
commit
0e94ff4a73
2 changed files with 7 additions and 1 deletions
|
@ -44,6 +44,12 @@ namespace ESM4
|
||||||
reader.getZString(value);
|
reader.getZString(value);
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
case 'u':
|
||||||
|
{
|
||||||
|
std::uint32_t value = 0;
|
||||||
|
reader.get(value);
|
||||||
|
return value;
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
throw std::runtime_error(
|
throw std::runtime_error(
|
||||||
"Unsupported ESM4 GMST (" + formId.toString() + ") data type: " + std::string(editorId));
|
"Unsupported ESM4 GMST (" + formId.toString() + ") data type: " + std::string(editorId));
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace ESM4
|
||||||
|
|
||||||
struct GameSetting
|
struct GameSetting
|
||||||
{
|
{
|
||||||
using Data = std::variant<std::monostate, bool, float, std::int32_t, std::string>;
|
using Data = std::variant<std::monostate, bool, float, std::int32_t, std::string, std::uint32_t>;
|
||||||
|
|
||||||
ESM::FormId mId; // from the header
|
ESM::FormId mId; // 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