diff options
author | Paul Gilbert | 2015-01-21 20:42:44 -0500 |
---|---|---|
committer | Paul Gilbert | 2015-01-21 20:42:44 -0500 |
commit | 932222de7dd32ff0a0b643a2e9d756160bff27bf (patch) | |
tree | 3be023b947f38976ce24640676d51b98710f48e9 /engines/xeen/files.cpp | |
parent | 69ca508e8fd16e79bfa5a0f66ced3ccf9fb2dbf8 (diff) | |
download | scummvm-rg350-932222de7dd32ff0a0b643a2e9d756160bff27bf.tar.gz scummvm-rg350-932222de7dd32ff0a0b643a2e9d756160bff27bf.tar.bz2 scummvm-rg350-932222de7dd32ff0a0b643a2e9d756160bff27bf.zip |
XEEN: Skeleton beginnings of script handling
Diffstat (limited to 'engines/xeen/files.cpp')
-rw-r--r-- | engines/xeen/files.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/engines/xeen/files.cpp b/engines/xeen/files.cpp index f8e7a3fc0c..0c3402f00d 100644 --- a/engines/xeen/files.cpp +++ b/engines/xeen/files.cpp @@ -232,4 +232,15 @@ void File::openFile(const Common::String &filename, Common::Archive &archive) { error("Could not open file - %s", filename.c_str()); } +Common::String File::readString() { + Common::String result; + char c; + + while (pos() < size() && (c = (char)readByte()) != '\0') + result += c; + + return result; +} + + } // End of namespace Xeen |