From 61c545637363eba2f3f4524cb351e8d4fd2e6275 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 18 Sep 2016 11:54:06 +0800 Subject: [PATCH] Log callbacks --- apps/openmw-mp/Script/Script.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/apps/openmw-mp/Script/Script.hpp b/apps/openmw-mp/Script/Script.hpp index 896045ca4..3931542dc 100644 --- a/apps/openmw-mp/Script/Script.hpp +++ b/apps/openmw-mp/Script/Script.hpp @@ -96,6 +96,9 @@ public: if (!callback) continue; + + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name); + if (script->script_type == SCRIPT_CPP) result = reinterpret_cast>>(callback)(std::forward(args)...); #if defined (ENABLE_PAWN) @@ -135,6 +138,8 @@ public: if (!callback) continue; + LOG_MESSAGE_SIMPLE(Log::LOG_VERBOSE, "Called function \"%s\"", data.name); + if (script->script_type == SCRIPT_CPP) reinterpret_cast>>(callback)(std::forward(args)...); #if defined (ENABLE_PAWN)