Prepends message text with current room number and running script info, then logs result
| 374 | |
| 375 | // Prepends message text with current room number and running script info, then logs result |
| 376 | static void debug_script_print_impl(const String &msg, MessageType mt) |
| 377 | { |
| 378 | String script_ref; |
| 379 | if (scriptExecutor && scriptExecutor->GetRunningScript()) |
| 380 | { |
| 381 | String scriptname = scriptExecutor->GetRunningScript()->GetSectionName(scriptExecutor->GetPC()); |
| 382 | script_ref.Format("[%s:%d] ", scriptname.GetCStr(), currentline); |
| 383 | } |
| 384 | |
| 385 | Debug::Printf(kDbgGroup_Game, mt, "(room:%d) %s%s", displayed_room, script_ref.GetCStr(), msg.GetCStr()); |
| 386 | } |
| 387 | |
| 388 | void debug_script_print(MessageType mt, const char *msg, ...) |
| 389 | { |
no test coverage detected