Add base.ANIMATION_DISPOSAL__ETC constants

This commit is contained in:
Nigel Tao committed 2021-11-09 09:53:29 +11:00
1 parent e847766b02
commit 2373340f83
3 files changed
+13 -6

No files matched your search

+6
View File
@@ -94,6 +94,12 @@ var Consts = [...]struct {
}{
// ----
{t.IDU8, "0", "ANIMATION_DISPOSAL__NONE"},
{t.IDU8, "1", "ANIMATION_DISPOSAL__RESTORE_BACKGROUND"},
{t.IDU8, "2", "ANIMATION_DISPOSAL__RESTORE_PREVIOUS"},
// ----
{t.IDU32, "1", "MORE_INFORMATION__FLAVOR__IO_REDIRECT"},
{t.IDU32, "2", "MORE_INFORMATION__FLAVOR__IO_SEEK"},
{t.IDU32, "3", "MORE_INFORMATION__FLAVOR__METADATA_RAW_PASSTHROUGH"},
+4
View File
@@ -135,6 +135,10 @@ func Check(tm *t.Map, files []*a.File, resolveUse func(usePath string) ([]byte,
}
xType := (*a.TypeExpr)(nil)
switch z.Type {
case t.IDU8:
xType = typeExprU8
case t.IDU16:
xType = typeExprU16
case t.IDU32:
xType = typeExprU32
case t.IDU64: