[Scummvm-git-logs] scummvm master -> 71119aafe2fefa67da784d18e44e988e2b699904
aquadran
noreply at scummvm.org
Sun Jan 16 21:12:18 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
71119aafe2 GRIM: Make Lua_V1::DriveActorTo() stub
Commit: 71119aafe2fefa67da784d18e44e988e2b699904
https://github.com/scummvm/scummvm/commit/71119aafe2fefa67da784d18e44e988e2b699904
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2022-01-16T22:12:14+01:00
Commit Message:
GRIM: Make Lua_V1::DriveActorTo() stub
Changed paths:
engines/grim/lua/lstate.cpp
engines/grim/lua_v1_actor.cpp
diff --git a/engines/grim/lua/lstate.cpp b/engines/grim/lua/lstate.cpp
index daaefb4fe14..f5e8bce9455 100644
--- a/engines/grim/lua/lstate.cpp
+++ b/engines/grim/lua/lstate.cpp
@@ -143,10 +143,16 @@ void callHook(lua_Function func, const char *filename, int32 line) {
FILE *output = stdout;
int i;
+ for (i = 0; i < lua_state->callLevelCounter; i++) {
+ fprintf(output, " ");
+ }
+ fprintf(output, "id: %d ", lua_state->id);
type = lua_getobjname(func, &name);
if (func == LUA_NOOBJECT) {
- fprintf(output, "%s\n", filename);
+ fprintf(output, "<< %s\n", filename);
return;
+ } else {
+ fprintf(output, ">> %s ", filename);
}
switch (*type) {
@@ -190,7 +196,7 @@ void callHook(lua_Function func, const char *filename, int32 line) {
if (line == 0)
fprintf(output, "{START SCRIPT: %s}", filename);
else if (line < 0) {
- fprintf(output, "%s", filename);
+ fprintf(output, "Unknown %s", filename);
} else
fprintf(output, "function (%s:%d)", filename, line);
}
diff --git a/engines/grim/lua_v1_actor.cpp b/engines/grim/lua_v1_actor.cpp
index ce535336a0e..bdaf933053f 100644
--- a/engines/grim/lua_v1_actor.cpp
+++ b/engines/grim/lua_v1_actor.cpp
@@ -1561,7 +1561,7 @@ void Lua_V1::SetActorFrustrumCull() {
}
void Lua_V1::DriveActorTo() {
- warning("Stub function: DriveActorTo");
+ // nothing to implement
}
} // end of namespace Grim
More information about the Scummvm-git-logs
mailing list