mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 14:25:37 +00:00
Qt: Use assume messages/confirmations from core are UTF-8
This commit is contained in:
parent
198b83676c
commit
8d5a6acfc7
|
@ -144,7 +144,7 @@ void QtHostInterface::ReportError(const char* message)
|
||||||
if (was_fullscreen)
|
if (was_fullscreen)
|
||||||
SetFullscreen(false);
|
SetFullscreen(false);
|
||||||
|
|
||||||
emit errorReported(QString::fromLocal8Bit(message));
|
emit errorReported(QString::fromUtf8(message));
|
||||||
|
|
||||||
if (was_fullscreen)
|
if (was_fullscreen)
|
||||||
SetFullscreen(true);
|
SetFullscreen(true);
|
||||||
|
@ -154,7 +154,7 @@ void QtHostInterface::ReportMessage(const char* message)
|
||||||
{
|
{
|
||||||
HostInterface::ReportMessage(message);
|
HostInterface::ReportMessage(message);
|
||||||
|
|
||||||
emit messageReported(QString::fromLocal8Bit(message));
|
emit messageReported(QString::fromUtf8(message));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QtHostInterface::ConfirmMessage(const char* message)
|
bool QtHostInterface::ConfirmMessage(const char* message)
|
||||||
|
@ -163,7 +163,7 @@ bool QtHostInterface::ConfirmMessage(const char* message)
|
||||||
if (was_fullscreen)
|
if (was_fullscreen)
|
||||||
SetFullscreen(false);
|
SetFullscreen(false);
|
||||||
|
|
||||||
const bool result = messageConfirmed(QString::fromLocal8Bit(message));
|
const bool result = messageConfirmed(QString::fromUtf8(message));
|
||||||
|
|
||||||
if (was_fullscreen)
|
if (was_fullscreen)
|
||||||
SetFullscreen(true);
|
SetFullscreen(true);
|
||||||
|
|
Loading…
Reference in a new issue