WIN32: Move Windows-specific implementation of logMessage out of OSystem_SDL

This commit is contained in:
Cameron Cawley 2018-05-27 22:24:55 +01:00 committed by Thierry Crozat
parent e1c83f8e87
commit ada05fd726
5 changed files with 30 additions and 27 deletions

View file

@ -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