aboutsummaryrefslogtreecommitdiff
path: root/sound/softsynth
diff options
context:
space:
mode:
authorMax Horn2005-04-22 17:40:09 +0000
committerMax Horn2005-04-22 17:40:09 +0000
commit969ef3dac93a21d981e4cc2a8c81c0f03a834417 (patch)
tree9240363f92815c7e92e53b0b42e8d553d4a478c3 /sound/softsynth
parentca33ec4563e05b0940e44de78e0f52bbbf6bfe41 (diff)
downloadscummvm-rg350-969ef3dac93a21d981e4cc2a8c81c0f03a834417.tar.gz
scummvm-rg350-969ef3dac93a21d981e4cc2a8c81c0f03a834417.tar.bz2
scummvm-rg350-969ef3dac93a21d981e4cc2a8c81c0f03a834417.zip
* Added new virtual base class 'Stream', ReadStream and
WriteStream are now subclasses of it. * Added new methods eos(), ioFailed(), clearIOFailed() to all streams. This allows better error checking. * SaveFile classes take advantage of these new standard stream APIS * Removed File::gets() * Added SeekableReadStream::readLine() (replaces File::gets) * Added WriteStream::writeString, for convenience svn-id: r17752
Diffstat (limited to 'sound/softsynth')
-rw-r--r--sound/softsynth/mt32.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/softsynth/mt32.cpp b/sound/softsynth/mt32.cpp
index 13502ed4df..75abaabbcc 100644
--- a/sound/softsynth/mt32.cpp
+++ b/sound/softsynth/mt32.cpp
@@ -90,7 +90,7 @@ public:
return file.read(in, size);
}
bool readLine(char *in, size_t size) {
- return file.gets(in, size) != NULL;
+ return file.readLine(in, size) != NULL;
}
bool readBit8u(MT32Emu::Bit8u *in) {
byte b = file.readByte();