Support unsigned int GMSTs

macos_ci_fix
Alexei Kotov 1 year ago
parent 891be9744d
commit 0e94ff4a73

@ -44,6 +44,12 @@ namespace ESM4
reader.getZString(value);
return value;
}
case 'u':
{
std::uint32_t value = 0;
reader.get(value);
return value;
}
default:
throw std::runtime_error(
"Unsupported ESM4 GMST (" + formId.toString() + ") data type: " + std::string(editorId));

@ -14,7 +14,7 @@ namespace ESM4
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
std::uint32_t mFlags; // from the header, see enum type RecordFlag for details

Loading…
Cancel
Save