summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/Common/Src')
-rw-r--r--Source/Core/Common/Src/ConsoleListener.cpp6
-rw-r--r--Source/Core/Common/Src/LogManager.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/Common/Src/ConsoleListener.cpp b/Source/Core/Common/Src/ConsoleListener.cpp
index 87f69c86e9..ff4e0b3c90 100644
--- a/Source/Core/Common/Src/ConsoleListener.cpp
+++ b/Source/Core/Common/Src/ConsoleListener.cpp
@@ -251,6 +251,12 @@ void ConsoleListener::PixelSpace(int Left, int Top, int Width, int Height, bool
#endif
}
+void ConsoleListener::CustomLog(const char *Text)
+{
+ DWORD cCharsWritten;
+ WriteConsole(hConsole, Text, (DWORD)strlen(Text), &cCharsWritten, NULL);
+}
+
void ConsoleListener::Log(LogTypes::LOG_LEVELS Level, const char *Text)
{
#if defined(_WIN32)
diff --git a/Source/Core/Common/Src/LogManager.h b/Source/Core/Common/Src/LogManager.h
index 232bf6901f..e6772b9535 100644
--- a/Source/Core/Common/Src/LogManager.h
+++ b/Source/Core/Common/Src/LogManager.h
@@ -83,6 +83,7 @@ public:
#ifdef _WIN32
COORD GetCoordinates(int BytesRead, int BufferWidth);
#endif
+ void CustomLog(const char *Text);
void Log(LogTypes::LOG_LEVELS, const char *Text);
void ClearScreen(bool Cursor = true);