16 bool MyShowCursor(
bool show,
bool toggle =
false);
18 typedef void (*Function)(int);
21 char *
convert_from_fs(
const TCHAR *name,
char *utf8_buf,
size_t buflen);
22 TCHAR *
convert_to_fs(
const char *name, TCHAR *utf16_buf,
size_t buflen,
bool console_cp =
false);
29 # define MB_TO_WIDE(str) OTTD2FS(str) 30 # define WIDE_TO_MB(str) FS2OTTD(str) 32 # define MB_TO_WIDE(str) (str) 33 # define WIDE_TO_MB(str) (str) 38 #if defined(__MINGW32__) && !defined(__MINGW64__) 39 #define SHGFP_TYPE_CURRENT 0 43 void SetWin32ThreadName(DWORD dwThreadID,
const char* threadName);
45 static inline void SetWin32ThreadName(DWORD dwThreadID,
const char* threadName) {}
TCHAR * convert_to_fs(const char *name, TCHAR *utf16_buf, size_t buflen, bool console_cp=false)
Convert from OpenTTD's encoding to that of the environment in UNICODE.
bool LoadLibraryList(Function proc[], const char *dll)
Helper function needed by dynamically loading libraries XXX: Hurray for MS only having an ANSI GetPro...
HRESULT OTTDSHGetFolderPath(HWND, int, HANDLE, DWORD, LPTSTR)
Our very own SHGetFolderPath function for support of windows operating systems that don't have this f...
char * convert_from_fs(const TCHAR *name, char *utf8_buf, size_t buflen)
Convert to OpenTTD's encoding from that of the environment in UNICODE.