mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-13 21:20:58 +00:00
Change error display for WinCE
svn-id: r5605
This commit is contained in:
parent
80d32ec5e1
commit
b4f7f1d21f
@ -38,7 +38,7 @@
|
||||
#include "string.h"
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
extern void GraphicsOff(void);
|
||||
extern void drawError(char*);
|
||||
#endif
|
||||
|
||||
// Use g_scumm from error() ONLY
|
||||
@ -1346,9 +1346,6 @@ void NORETURN CDECL error(const char *s, ...)
|
||||
char buf[1024];
|
||||
#if defined( USE_WINDBG ) || defined ( _WIN32_WCE )
|
||||
char buf2[1024];
|
||||
#if defined( _WIN32_WCE )
|
||||
TCHAR buf2w[2048];
|
||||
#endif
|
||||
#endif
|
||||
|
||||
va_list va;
|
||||
@ -1370,13 +1367,9 @@ void NORETURN CDECL error(const char *s, ...)
|
||||
g_scumm->_scriptPointer - g_scumm->_scriptOrgPointer,
|
||||
buf);
|
||||
#if defined ( _WIN32_WCE )
|
||||
/*
|
||||
MultiByteToWideChar(CP_ACP, 0, buf2, strlen(buf2) + 1, buf2w, sizeof(buf2w));
|
||||
GraphicsOff();
|
||||
MessageBox(NULL, buf2w, TEXT("ScummVM error"), MB_OK);
|
||||
*/
|
||||
drawError(buf2);
|
||||
#else
|
||||
OutputDebugString(buf2);
|
||||
OutputDebugString(buf2);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@ -1385,13 +1378,9 @@ void NORETURN CDECL error(const char *s, ...)
|
||||
#if defined( USE_WINDBG ) || defined( _WIN32_WCE )
|
||||
sprintf(&buf[strlen(buf)], "\n");
|
||||
#if defined ( _WIN32_WCE )
|
||||
/*
|
||||
MultiByteToWideChar(CP_ACP, 0, buf, strlen(buf) + 1, buf2w, sizeof(buf2w));
|
||||
GraphicsOff();
|
||||
MessageBox(NULL, buf2w, TEXT("ScummVM error"), MB_OK);
|
||||
*/
|
||||
drawError(buf);
|
||||
#else
|
||||
OutputDebugString(buf);
|
||||
OutputDebugString(buf);
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user