aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/fileio.cpp
diff options
context:
space:
mode:
authoruruk2014-05-08 18:32:29 +0200
committeruruk2014-05-08 18:32:29 +0200
commit12a9d0a759fd0129ced1f8815d1da569cd4378c2 (patch)
tree308bdb0fc219127e61150d2f3dbbe9eb20cb9368 /engines/cge2/fileio.cpp
parent72cccb80008979ed4f23404681df173d007f34ed (diff)
downloadscummvm-rg350-12a9d0a759fd0129ced1f8815d1da569cd4378c2.tar.gz
scummvm-rg350-12a9d0a759fd0129ced1f8815d1da569cd4378c2.tar.bz2
scummvm-rg350-12a9d0a759fd0129ced1f8815d1da569cd4378c2.zip
CGE2: Add kIdTab and _lineCount to EncryptedStream.
Diffstat (limited to 'engines/cge2/fileio.cpp')
-rw-r--r--engines/cge2/fileio.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/cge2/fileio.cpp b/engines/cge2/fileio.cpp
index 7677699fed..6cc9f8b8de 100644
--- a/engines/cge2/fileio.cpp
+++ b/engines/cge2/fileio.cpp
@@ -181,7 +181,7 @@ uint16 ResourceManager::catRead(byte *buf, uint16 length) {
/*-----------------------------------------------------------------------
* EncryptedStream
*-----------------------------------------------------------------------*/
-EncryptedStream::EncryptedStream(CGE2Engine *vm, const char *name) : _vm(vm) {
+EncryptedStream::EncryptedStream(CGE2Engine *vm, const char *name) : _vm(vm), _lineCount(0) {
_error = false;
BtKeypack *kp = _vm->_resman->find(name);
if (scumm_stricmp(kp->_key, name) != 0)
@@ -229,6 +229,7 @@ bool EncryptedStream::seek(int32 offset) {
}
Common::String EncryptedStream::readLine() {
+ _lineCount++;
return _readStream->readLine();
}
@@ -256,4 +257,10 @@ EncryptedStream::~EncryptedStream() {
delete _readStream;
}
+const char *EncryptedStream::kIdTab[] = {
+ "[near]", "[mtake]", "[ftake]", "[phase]", "[seq]",
+ "Name", "Type", "Front", "East",
+ "Portable", "Transparent",
+ NULL };
+
} // End of namespace CGE2