diff options
Diffstat (limited to 'backends/platform/sdl/win32/win32_wrapper.h')
-rw-r--r-- | backends/platform/sdl/win32/win32_wrapper.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/backends/platform/sdl/win32/win32_wrapper.h b/backends/platform/sdl/win32/win32_wrapper.h index d42838d1e1..8bd60239df 100644 --- a/backends/platform/sdl/win32/win32_wrapper.h +++ b/backends/platform/sdl/win32/win32_wrapper.h @@ -45,7 +45,7 @@ bool confirmWindowsVersion(int majorVersion, int minorVersion); * * @note Return value must be freed by the caller. */ -wchar_t *ansiToUnicode(const char *s); +wchar_t *ansiToUnicode(const char *s, uint codePage = CP_ACP); /** * Converts a Windows wide-character string into a C string. * Used to interact with Win32 Unicode APIs with no ANSI fallback. @@ -55,7 +55,9 @@ wchar_t *ansiToUnicode(const char *s); * * @note Return value must be freed by the caller. */ -char *unicodeToAnsi(const wchar_t *s); +char *unicodeToAnsi(const wchar_t *s, uint codePage = CP_ACP); + +uint getCurrentCharset(); } |