aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/input/inputengine.cpp
diff options
context:
space:
mode:
authorMax Horn2010-10-28 00:26:25 +0000
committerMax Horn2010-10-28 00:26:25 +0000
commitb2fa7e58a395b883e7c59ecb1f29f8fc6607885b (patch)
tree01e5d568b0d7fe4b42b0abca5c1f0fa80654e196 /engines/sword25/input/inputengine.cpp
parentcf3551525f4583ec8a5feb231cb25d81a9722853 (diff)
downloadscummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.gz
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.tar.bz2
scummvm-rg350-b2fa7e58a395b883e7c59ecb1f29f8fc6607885b.zip
SWORD25: Start to rename read/write methods of *PersistenceBlock classes
All should be renamed to reduce risk of accidental incorrect use. svn-id: r53899
Diffstat (limited to 'engines/sword25/input/inputengine.cpp')
-rw-r--r--engines/sword25/input/inputengine.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/input/inputengine.cpp b/engines/sword25/input/inputengine.cpp
index 7c110a92bb..8dc98ba3fb 100644
--- a/engines/sword25/input/inputengine.cpp
+++ b/engines/sword25/input/inputengine.cpp
@@ -243,13 +243,13 @@ bool InputEngine::persist(OutputPersistenceBlock &writer) {
// Note: We do this only for compatibility with older engines resp.
// the original engine.
writer.write((uint)1);
- writer.write(Common::String("LuaCommandCB"));
+ writer.writeString("LuaCommandCB");
// Write out the number of command callbacks and their names.
// Note: We do this only for compatibility with older engines resp.
// the original engine.
writer.write((uint)1);
- writer.write(Common::String("LuaCharacterCB"));
+ writer.writeString("LuaCharacterCB");
return true;
}
@@ -264,7 +264,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) {
reader.read(commandCallbackCount);
assert(commandCallbackCount == 1);
- reader.read(callbackFunctionName);
+ reader.readString(callbackFunctionName);
assert(callbackFunctionName == "LuaCommandCB");
// Read number of character callbacks and their names.
@@ -274,7 +274,7 @@ bool InputEngine::unpersist(InputPersistenceBlock &reader) {
reader.read(characterCallbackCount);
assert(characterCallbackCount == 1);
- reader.read(callbackFunctionName);
+ reader.readString(callbackFunctionName);
assert(callbackFunctionName == "LuaCharacterCB");
return reader.isGood();