diff options
author | Einar Johan Trøan Sømåen | 2012-07-03 05:37:08 +0200 |
---|---|---|
committer | Einar Johan Trøan Sømåen | 2012-07-03 05:37:08 +0200 |
commit | 2f90dd76f99a827ce1bf5ea8ee6d653396756e1b (patch) | |
tree | 1239e46c37d48023f2a6cd0148d93d0920b34a83 /engines/wintermute/Base/scriptables/ScEngine.cpp | |
parent | c27d6585df61efc8b1ff5917de2dc3ae8b5d4248 (diff) | |
download | scummvm-rg350-2f90dd76f99a827ce1bf5ea8ee6d653396756e1b.tar.gz scummvm-rg350-2f90dd76f99a827ce1bf5ea8ee6d653396756e1b.tar.bz2 scummvm-rg350-2f90dd76f99a827ce1bf5ea8ee6d653396756e1b.zip |
WINTERMUTE: Rename FuncName->funcName in CScValue
Diffstat (limited to 'engines/wintermute/Base/scriptables/ScEngine.cpp')
-rw-r--r-- | engines/wintermute/Base/scriptables/ScEngine.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/engines/wintermute/Base/scriptables/ScEngine.cpp b/engines/wintermute/Base/scriptables/ScEngine.cpp index e840d0cd78..8aca4c9edf 100644 --- a/engines/wintermute/Base/scriptables/ScEngine.cpp +++ b/engines/wintermute/Base/scriptables/ScEngine.cpp @@ -105,17 +105,17 @@ CScEngine::CScEngine(CBGame *inGame): CBBase(inGame) { // register 'Game' as global variable
- if (!_globals->PropExists("Game")) {
+ if (!_globals->propExists("Game")) {
CScValue val(Game);
- val.SetNative(Game, true);
- _globals->SetProp("Game", &val);
+ val.setNative(Game, true);
+ _globals->setProp("Game", &val);
}
// register 'Math' as global variable
- if (!_globals->PropExists("Math")) {
+ if (!_globals->propExists("Math")) {
CScValue val(Game);
- val.SetNative(Game->_mathClass, true);
- _globals->SetProp("Math", &val);
+ val.setNative(Game->_mathClass, true);
+ _globals->setProp("Math", &val);
}
// prepare script cache
@@ -250,11 +250,11 @@ CScScript *CScEngine::RunScript(const char *Filename, CBScriptHolder *Owner) { } else {
// publish the "self" pseudo-variable
CScValue val(Game);
- if (Owner)val.SetNative(Owner, true);
- else val.SetNULL();
+ if (Owner)val.setNative(Owner, true);
+ else val.setNULL();
- script->_globals->SetProp("self", &val);
- script->_globals->SetProp("this", &val);
+ script->_globals->setProp("self", &val);
+ script->_globals->setProp("this", &val);
_scripts.Add(script);
Game->GetDebugMgr()->OnScriptInit(script);
|