aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/support/simple_file.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/support/simple_file.cpp')
-rw-r--r--engines/titanic/support/simple_file.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/titanic/support/simple_file.cpp b/engines/titanic/support/simple_file.cpp
index f4351f920f..45b5c8a7cb 100644
--- a/engines/titanic/support/simple_file.cpp
+++ b/engines/titanic/support/simple_file.cpp
@@ -25,6 +25,17 @@
namespace Titanic {
+CString readStringFromStream(Common::SeekableReadStream *s) {
+ CString result;
+ char c;
+ while ((c = s->readByte()) != '\0')
+ result += c;
+
+ return result;
+}
+
+/*------------------------------------------------------------------------*/
+
bool File::open(const Common::String &name) {
if (!Common::File::open(name))
error("Could not open file - %s", name.c_str());