aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction
diff options
context:
space:
mode:
authorMax Horn2008-09-03 18:40:49 +0000
committerMax Horn2008-09-03 18:40:49 +0000
commitad87f08192cd5ba129f83f6e50ed7b6f2113e075 (patch)
tree884ffe170fcc11de34451a006a68abc8d2a389d0 /engines/parallaction
parent3cb4cfa06ff10ac1f5b708ae78e624c07b3eaa4e (diff)
downloadscummvm-rg350-ad87f08192cd5ba129f83f6e50ed7b6f2113e075.tar.gz
scummvm-rg350-ad87f08192cd5ba129f83f6e50ed7b6f2113e075.tar.bz2
scummvm-rg350-ad87f08192cd5ba129f83f6e50ed7b6f2113e075.zip
Changed some code to use the new Stream::readLine() method
svn-id: r34318
Diffstat (limited to 'engines/parallaction')
-rw-r--r--engines/parallaction/detection.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/engines/parallaction/detection.cpp b/engines/parallaction/detection.cpp
index 7611adcddd..aae17d32e1 100644
--- a/engines/parallaction/detection.cpp
+++ b/engines/parallaction/detection.cpp
@@ -278,7 +278,6 @@ bool ParallactionMetaEngine::createInstance(OSystem *syst, Engine **engine, cons
SaveStateList ParallactionMetaEngine::listSaves(const char *target) const {
Common::SaveFileManager *saveFileMan = g_system->getSavefileManager();
Common::StringList filenames;
- char saveDesc[200];
Common::String pattern = target;
pattern += ".0??";
@@ -293,7 +292,7 @@ SaveStateList ParallactionMetaEngine::listSaves(const char *target) const {
if (slotNum >= 0 && slotNum <= 99) {
Common::InSaveFile *in = saveFileMan->openForLoading(file->c_str());
if (in) {
- in->readLine_OLD(saveDesc, 199);
+ Common::String saveDesc = in->readLine();
saveList.push_back(SaveStateDescriptor(slotNum, saveDesc, *file));
delete in;
}