diff options
author | uruk | 2014-05-05 20:31:21 +0200 |
---|---|---|
committer | uruk | 2014-05-05 20:31:21 +0200 |
commit | a0c5805c8efba2e184b737dc7869092318743004 (patch) | |
tree | 46dd164be2e23215701c494007882812e7ae2185 /engines/cge2/fileio.cpp | |
parent | b595d9ee0a66c3a8980b0c513529bd0ff0ffe5b5 (diff) | |
download | scummvm-rg350-a0c5805c8efba2e184b737dc7869092318743004.tar.gz scummvm-rg350-a0c5805c8efba2e184b737dc7869092318743004.tar.bz2 scummvm-rg350-a0c5805c8efba2e184b737dc7869092318743004.zip |
CGE2: Read identifiers properly in Text::load().
Diffstat (limited to 'engines/cge2/fileio.cpp')
-rw-r--r-- | engines/cge2/fileio.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cge2/fileio.cpp b/engines/cge2/fileio.cpp index 4da2c52cfa..fb39cd3ad7 100644 --- a/engines/cge2/fileio.cpp +++ b/engines/cge2/fileio.cpp @@ -232,6 +232,14 @@ Common::String EncryptedStream::readLine() { return _readStream->readLine(); } +int EncryptedStream::number(char *s) { + int r = atoi(s); + char *pp = strchr(s, ':'); + if (pp) + r = (r << 8) + atoi(pp + 1); + return r; +} + int32 EncryptedStream::size() { return _readStream->size(); } |