aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/script/luascript.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2010-09-02 17:11:45 +0000
committerEugene Sandulenko2010-10-12 23:32:32 +0000
commit06bce68860696f67f0a0ac1e9682635081918801 (patch)
treeaa64e048a3c8870f5305db8f112194ab874409d5 /engines/sword25/script/luascript.cpp
parent086f5961b6575c50bb386750b6e9a3ed1efdd8cd (diff)
downloadscummvm-rg350-06bce68860696f67f0a0ac1e9682635081918801.tar.gz
scummvm-rg350-06bce68860696f67f0a0ac1e9682635081918801.tar.bz2
scummvm-rg350-06bce68860696f67f0a0ac1e9682635081918801.zip
SWORD25: Comply to the code conventions for several classes
svn-id: r53310
Diffstat (limited to 'engines/sword25/script/luascript.cpp')
-rw-r--r--engines/sword25/script/luascript.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/script/luascript.cpp b/engines/sword25/script/luascript.cpp
index 4055c5fc06..d57bd5e7b0 100644
--- a/engines/sword25/script/luascript.cpp
+++ b/engines/sword25/script/luascript.cpp
@@ -448,7 +448,7 @@ int Chunkwriter(lua_State *L, const void *p, size_t sz, void *ud) {
}
}
-bool LuaScriptEngine::Persist(OutputPersistenceBlock &Writer) {
+bool LuaScriptEngine::persist(OutputPersistenceBlock &Writer) {
// Empty the Lua stack. pluto_persist() xepects that the stack is empty except for its parameters
lua_settop(m_State, 0);
@@ -465,7 +465,7 @@ bool LuaScriptEngine::Persist(OutputPersistenceBlock &Writer) {
pluto_persist(m_State, Chunkwriter, &chunkData);
// Persistenzdaten in den Writer schreiben.
- Writer.Write(&chunkData[0], chunkData.size());
+ Writer.write(&chunkData[0], chunkData.size());
// Die beiden Tabellen vom Stack nehmen.
lua_pop(m_State, 2);
@@ -540,7 +540,7 @@ void ClearGlobalTable(lua_State *L, const char **Exceptions) {
// -----------------------------------------------------------------------------
-bool LuaScriptEngine::Unpersist(InputPersistenceBlock &Reader) {
+bool LuaScriptEngine::unpersist(InputPersistenceBlock &Reader) {
// Empty the Lua stack. pluto_persist() xepects that the stack is empty except for its parameters
lua_settop(m_State, 0);
@@ -570,7 +570,7 @@ bool LuaScriptEngine::Unpersist(InputPersistenceBlock &Reader) {
// Persisted Lua data
Common::Array<byte> chunkData;
- Reader.Read(chunkData);
+ Reader.read(chunkData);
// Chunk-Reader initialisation. It is used with pluto_unpersist to restore read data
ChunkreaderData cd;