aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2003-07-13 12:24:36 +0000
committerNicolas Bacca2003-07-13 12:24:36 +0000
commitf163ae5ce5a02ee5ce1d899bdf653cff8dc033be (patch)
tree9fa9dac40ba112ef3ba41d6af87a0707dc98a6e9
parenta2f2d4c40a3c7751a9d3f265c306979b47eae802 (diff)
downloadscummvm-rg350-f163ae5ce5a02ee5ce1d899bdf653cff8dc033be.tar.gz
scummvm-rg350-f163ae5ce5a02ee5ce1d899bdf653cff8dc033be.tar.bz2
scummvm-rg350-f163ae5ce5a02ee5ce1d899bdf653cff8dc033be.zip
Update WINDBG to WinCE
svn-id: r8976
-rw-r--r--common/engine.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/common/engine.cpp b/common/engine.cpp
index f89793b14a..b00a3594b3 100644
--- a/common/engine.cpp
+++ b/common/engine.cpp
@@ -131,8 +131,14 @@ void NORETURN CDECL error(const char *s, ...) {
#endif
#if defined( USE_WINDBG )
+#if defined( _WIN32_WCE )
+ TCHAR buf_output_unicode[1024];
+ MultiByteToWideChar(CP_ACP, 0, buf_output, strlen(buf_output) + 1, buf_output_unicode, sizeof(buf_output_unicode));
+ OutputDebugString(buf_output_unicode);
+#else
OutputDebugString(buf_output);
#endif
+#endif
#if defined ( _WIN32_WCE )
drawError(buf_output);
@@ -168,8 +174,14 @@ void CDECL warning(const char *s, ...) {
#endif
#if defined( USE_WINDBG )
strcat(buf, "\n");
+#if defined( _WIN32_WCE )
+ TCHAR buf_unicode[1024];
+ MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf_unicode, sizeof(buf_unicode));
+ OutputDebugString(buf_unicode);
+#else
OutputDebugString(buf);
#endif
+#endif
}
uint16 _debugLevel = 1;
@@ -192,8 +204,14 @@ void CDECL debug(int level, const char *s, ...) {
#if defined( USE_WINDBG )
strcat(buf, "\n");
+#if defined( _WIN32_WCE )
+ TCHAR buf_unicode[1024];
+ MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf_unicode, sizeof(buf_unicode));
+ OutputDebugString(buf_unicode);
+#else
OutputDebugString(buf);
#endif
+#endif
fflush(stdout);
}