mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-02 22:29:21 +00:00
Merge pull request #8341 from CookiePLMonster/win-utf8-console-output
ConsoleListenerWin: Properly output console logging in UTF-16
This commit is contained in:
commit
9d648904ed
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
||||||
#include "Common/Logging/ConsoleListener.h"
|
#include "Common/Logging/ConsoleListener.h"
|
||||||
|
#include "Common/StringUtil.h"
|
||||||
|
|
||||||
ConsoleListener::ConsoleListener()
|
ConsoleListener::ConsoleListener()
|
||||||
{
|
{
|
||||||
|
@ -16,5 +17,5 @@ ConsoleListener::~ConsoleListener()
|
||||||
|
|
||||||
void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text)
|
void ConsoleListener::Log(LogTypes::LOG_LEVELS level, const char* text)
|
||||||
{
|
{
|
||||||
::OutputDebugStringA(text);
|
::OutputDebugStringW(UTF8ToUTF16(text).c_str());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue