diff options
Diffstat (limited to 'common/xmlparser.h')
-rw-r--r-- | common/xmlparser.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h index 4850dc5113..d31c69ebee 100644 --- a/common/xmlparser.h +++ b/common/xmlparser.h @@ -332,6 +332,14 @@ protected: return (*key == 0); } + /** + * Internal state cleanup. Overload this if your parser needs + * to clean itself up before doing a second parse. + * E.g. the Theme Parser cleans the color palette after parsing + * a theme. + */ + virtual void cleanup() {} + int _pos; /** Current position on the XML buffer. */ XMLStream _text; /** Buffer with the text being parsed */ Common::String _fileName; |