diff options
author | Nicola Mettifogo | 2007-03-04 15:00:50 +0000 |
---|---|---|
committer | Nicola Mettifogo | 2007-03-04 15:00:50 +0000 |
commit | 1eb2d6f6253c578735da81a6e7671ae7773d05e0 (patch) | |
tree | 03a158de2b1452dbf91d4e3e2e3bdc11a306cd7a /engines/parallaction/parser.h | |
parent | b440bc1a0357503c6edec22ea1182613040de41c (diff) | |
download | scummvm-rg350-1eb2d6f6253c578735da81a6e7671ae7773d05e0.tar.gz scummvm-rg350-1eb2d6f6253c578735da81a6e7671ae7773d05e0.tar.bz2 scummvm-rg350-1eb2d6f6253c578735da81a6e7671ae7773d05e0.zip |
made Script optionally take ownership and dispose input text
svn-id: r25973
Diffstat (limited to 'engines/parallaction/parser.h')
-rw-r--r-- | engines/parallaction/parser.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/engines/parallaction/parser.h b/engines/parallaction/parser.h index c0d8613d3c..fa633676e0 100644 --- a/engines/parallaction/parser.h +++ b/engines/parallaction/parser.h @@ -37,10 +37,13 @@ extern char _tokens[][40]; class Script : public Common::SeekableReadStream { - const char* _src; + const char* const _src; + bool _disposeSource; + char* _pos; public: - Script(const char* s); + Script(const char* s, bool _disposeSource = false); + ~Script(); uint32 read(void *dataPtr, uint32 dataSize); |