aboutsummaryrefslogtreecommitdiff
path: root/engines/queen
diff options
context:
space:
mode:
authorMax Horn2008-12-01 21:13:02 +0000
committerMax Horn2008-12-01 21:13:02 +0000
commit4b7d45558033eb03bf9b6dad382aa849b64bdee4 (patch)
treeaa7e4ea7d6368a5a49b5e0db3ba1abf49012e96d /engines/queen
parent5212c3ea03e93133137beae092f7f79adfeb2082 (diff)
downloadscummvm-rg350-4b7d45558033eb03bf9b6dad382aa849b64bdee4.tar.gz
scummvm-rg350-4b7d45558033eb03bf9b6dad382aa849b64bdee4.tar.bz2
scummvm-rg350-4b7d45558033eb03bf9b6dad382aa849b64bdee4.zip
Got rid of Stream::readLine_OLD calls in two places (mostly untested, please check/test for regressions)
svn-id: r35198
Diffstat (limited to 'engines/queen')
-rw-r--r--engines/queen/resource.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/engines/queen/resource.cpp b/engines/queen/resource.cpp
index 38d841e96a..7c15d7884a 100644
--- a/engines/queen/resource.cpp
+++ b/engines/queen/resource.cpp
@@ -130,10 +130,12 @@ void Resource::loadTextFile(const char *filename, Common::StringList &stringList
ResourceEntry *re = resourceEntry(filename);
assert(re != NULL);
seekResourceFile(re->bundle, re->offset);
- char buf[512];
Common::SeekableSubReadStream stream(&_resourceFile, re->offset, re->offset + re->size);
- while (stream.readLine_OLD(buf, 512)) {
- stringList.push_back(buf);
+ while (true) {
+ Common::String tmp = stream.readLine();
+ if (stream.eos() || stream.err())
+ break;
+ stringList.push_back(tmp);
}
}