From ada05fd726f5e02a79f2de457241b614e33c7745 Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 27 May 2018 22:24:55 +0100 Subject: WIN32: Move Windows-specific implementation of logMessage out of OSystem_SDL --- backends/platform/sdl/win32/win32.cpp | 8 ++++++++ backends/platform/sdl/win32/win32.h | 2 ++ 2 files changed, 10 insertions(+) (limited to 'backends/platform/sdl/win32') diff --git a/backends/platform/sdl/win32/win32.cpp b/backends/platform/sdl/win32/win32.cpp index f262ff090b..bcaa6e4d7b 100644 --- a/backends/platform/sdl/win32/win32.cpp +++ b/backends/platform/sdl/win32/win32.cpp @@ -150,6 +150,14 @@ bool OSystem_Win32::openUrl(const Common::String &url) { return true; } +void OSystem_Win32::logMessage(LogMessageType::Type type, const char *message) { + OSystem_SDL::logMessage(type, message); + +#if defined( USE_WINDBG ) + OutputDebugString(message); +#endif +} + Common::String OSystem_Win32::getSystemLanguage() const { #if defined(USE_DETECTLANG) && defined(USE_TRANSLATION) // We can not use "setlocale" (at least not for MSVC builds), since it diff --git a/backends/platform/sdl/win32/win32.h b/backends/platform/sdl/win32/win32.h index 8523345d3c..bee160f0a0 100644 --- a/backends/platform/sdl/win32/win32.h +++ b/backends/platform/sdl/win32/win32.h @@ -38,6 +38,8 @@ public: virtual bool openUrl(const Common::String &url); + virtual void logMessage(LogMessageType::Type type, const char *message); + virtual Common::String getSystemLanguage() const; virtual Common::String getScreenshotsPath(); -- cgit v1.2.3