diff options
author | Vicent Marti | 2008-07-03 19:42:04 +0000 |
---|---|---|
committer | Vicent Marti | 2008-07-03 19:42:04 +0000 |
commit | 8240e5b96d072fda2f84abdf84c27cf90ee891a5 (patch) | |
tree | fb02e8326566539145b3306eb76ce88168723676 /common/xmlparser.h | |
parent | 919d81f03be0d3f03cb1fdca0735a9b3ae563af2 (diff) | |
download | scummvm-rg350-8240e5b96d072fda2f84abdf84c27cf90ee891a5.tar.gz scummvm-rg350-8240e5b96d072fda2f84abdf84c27cf90ee891a5.tar.bz2 scummvm-rg350-8240e5b96d072fda2f84abdf84c27cf90ee891a5.zip |
Rendering pipeline. WIP.
(I see working buttons)
svn-id: r32898
Diffstat (limited to 'common/xmlparser.h')
-rw-r--r-- | common/xmlparser.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/xmlparser.h b/common/xmlparser.h index fa1f10061a..167d04249c 100644 --- a/common/xmlparser.h +++ b/common/xmlparser.h @@ -63,7 +63,7 @@ public: _pos = idx; - return _stream->readSByte(); + return _stream->readByte(); } void loadStream(SeekableReadStream *s) { @@ -331,6 +331,13 @@ protected: return (*key == 0); } + /** + * Overload if your parser needs to support parsing the same file + * several times, so you can clean up the internal state of the + * parser before each parse. + */ + virtual void cleanup() {} + int _pos; /** Current position on the XML buffer. */ XMLStream _text; /** Buffer with the text being parsed */ Common::String _fileName; |