static partial void FillBinaryFlagsCustom(MutagenFrame frame, IMaterialObjectInternal item) { if (item.FormVersion >= 44 || (frame.Remaining >= 8 && item.FormVersion == 43 && frame.MetaData.Constants.Release == GameRelease.SkyrimVR)) { item.Flags = (MaterialObject.Flag)frame.ReadUInt64(); } else { item.Flags = (MaterialObject.Flag)frame.ReadUInt32(); } }