(svn r7278) -Codechange: [win32] Add UNICODE support so it should compile on OS's using UNICODE

API exclusively.
This commit is contained in:
Darkvater
2006-11-28 19:58:13 +00:00
parent bf907c8d3c
commit 8d29e3efdb
4 changed files with 119 additions and 83 deletions

View File

@@ -64,6 +64,7 @@ static void DedicatedSignalHandler(int sig)
#include <windows.h> /* GetTickCount */
#include <conio.h>
#include <time.h>
#include <tchar.h>
static HANDLE _hInputReady, _hWaitForInputHandling;
static HANDLE _hThread; // Thread to close
static char _win_console_thread_buffer[200];
@@ -121,10 +122,10 @@ static const char *DedicatedVideoStart(const char * const *parm)
_debug_misc_level = 0;
#ifdef WIN32
// For win32 we need to allocate an console (debug mode does the same)
// For win32 we need to allocate a console (debug mode does the same)
CreateConsole();
CreateWindowsConsoleThread();
SetConsoleTitle("OpenTTD Dedicated Server");
SetConsoleTitle(_T("OpenTTD Dedicated Server"));
#endif
#ifdef __OS2__