From 7ab1ea1f36e88698d9a5e36707e92e230fe8b3d1 Mon Sep 17 00:00:00 2001 From: port Date: Sun, 20 Sep 2015 15:54:11 +0200 Subject: [PATCH] Remove debug messages --- BlocklandLua/Torque.h | 5 +---- BlocklandLua/dllmain.cpp | 1 + 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/BlocklandLua/Torque.h b/BlocklandLua/Torque.h index f68400f..79f8e9f 100644 --- a/BlocklandLua/Torque.h +++ b/BlocklandLua/Torque.h @@ -30,10 +30,7 @@ enum NamespaceEntryType { #define BLSCAN(target, pattern, mask) \ target = (target##Fn)ScanFunc(pattern, mask); \ if(target == NULL) \ - Printf("torquedll | Cannot find function "#target"!"); \ - else \ - Printf("torquedll | Found "#target" at %x", target); - + Printf("torquedll | Cannot find function "#target"!"); ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// diff --git a/BlocklandLua/dllmain.cpp b/BlocklandLua/dllmain.cpp index 39b1de5..1d0a46e 100644 --- a/BlocklandLua/dllmain.cpp +++ b/BlocklandLua/dllmain.cpp @@ -217,6 +217,7 @@ DWORD WINAPI Init(LPVOID args) ConsoleFunction(NULL, "luaExec", tsf_luaExec, "luaExec(string filename, bool silent=false) - Execute a Lua code file.", 2, 3); ConsoleFunction(NULL, "luaCall", tsf_luaCall, "luaCall(string name, ...) - Call a Lua function.", 2, 20); + Sleep(50); Eval("if(isFunction(\"onLuaLoaded\"))onLuaLoaded();"); return 0;