summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-05-01 21:32:30 +0200
committerYuval Adam <_@yuv.al>2025-05-01 21:32:30 +0200
commitb432745b96cc379ae6465851a283f54cf6e2f421 (patch)
tree7a46bcc429315078847dde87144935a74c4ccdb6
parentc602f007e51adc98d3c81078a1acb52b9e9ce5c8 (diff)
Add EmptyColor marker 12, fixes #28
-rw-r--r--tests/samples/emptycolor.sample1
-rw-r--r--viewstate/parse.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/samples/emptycolor.sample b/tests/samples/emptycolor.sample
new file mode 100644
index 0000000..be59e44
--- /dev/null
+++ b/tests/samples/emptycolor.sample
@@ -0,0 +1 @@
+/wEMDAwQAgAADgEMBQAMEAIMDwIBEl9fQW50aVhzcmZVc2VyTmFtZQEAAQ9fX0FudGlYc3JmVG9rZW4BIDFjYjk1YTM3ODY3NDRjY2I4MDEwYTc5ODZiMDdjMDM4AAAOAQwFAwwQAgAADgEMBQkMEAIAAA4CDAUBDBACDwEBB1Zpc2libGUIAA4BDAUBDBACDwEBBFRleHQBH1VzZXJuYW1lIG9yIHBhc3N3b3JkIGluY29ycmVjdC4AAAwFBQwQAgwPAQIFAAIBAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGHSh00VnB2/S4/nfvIBWkkpliHtjUQYe2v9SSG9fJS2 \ No newline at end of file
diff --git a/viewstate/parse.py b/viewstate/parse.py
index f47f596..e459181 100644
--- a/viewstate/parse.py
+++ b/viewstate/parse.py
@@ -116,6 +116,11 @@ class Enum(Parser):
return final, remain
+class EmptyColor(Const):
+ marker = 0x0C
+ const = "Color: Empty"
+
+
class Color(Parser):
marker = 0x0A