MCPcopy Create free account
hub / github.com/Norbyte/bg3se / LocalPrint

Method LocalPrint

CoreLib/Console.cpp:43–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43void Console::LocalPrint(DebugMessageType type, char const* msg)
44{
45 if (enabled_ && (!inputEnabled_ || !silence_)) {
46 SetColor(type);
47 OutputDebugStringA(msg);
48 OutputDebugStringA("\r\n");
49 std::cout << msg << std::endl;
50 std::cout.flush();
51 SetColor(DebugMessageType::Debug);
52 }
53
54 if (logToFile_) {
55 logFile_.write(msg, strlen(msg));
56 logFile_.write("\r\n", 2);
57 logFile_.flush();
58 }
59}
60
61void Console::Print(DebugMessageType type, char const* msg)
62{

Callers 1

DebugLocalFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected