[Scummvm-cvs-logs] CVS: residual engine.cpp,1.2,1.3
Jonathan Gray
khalek at users.sourceforge.net
Sat Aug 16 03:00:08 CEST 2003
Update of /cvsroot/scummvm/residual
In directory sc8-pr-cvs1:/tmp/cvs-serv28329
Modified Files:
engine.cpp
Log Message:
add ability to type lua code from stdin with F12
Index: engine.cpp
===================================================================
RCS file: /cvsroot/scummvm/residual/engine.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- engine.cpp 15 Aug 2003 23:31:28 -0000 1.2
+++ engine.cpp 16 Aug 2003 08:45:22 -0000 1.3
@@ -73,8 +73,14 @@
lua_callfunction(handler);
lua_endblock();
}
- if (event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_q)
- return;
+ if (event.type == SDL_KEYDOWN) {
+ if (event.key.keysym.sym == SDLK_q)
+ return;
+ else if (event.key.keysym.sym == SDLK_F12) {
+ printf("Enter lua code, ^D to end\n> ");
+ lua_dofile(NULL);
+ }
+ }
}
// Run asynchronous tasks
More information about the Scummvm-git-logs
mailing list