summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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