mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
More string conversion cleanup.
This commit is contained in:
@ -192,7 +192,7 @@ void CLogWindow::SaveSettings()
|
|||||||
void CLogWindow::OnSubmit(wxCommandEvent& WXUNUSED (event))
|
void CLogWindow::OnSubmit(wxCommandEvent& WXUNUSED (event))
|
||||||
{
|
{
|
||||||
if (!m_cmdline) return;
|
if (!m_cmdline) return;
|
||||||
Console_Submit(m_cmdline->GetValue().To8BitData());
|
Console_Submit(WxStrToStr(m_cmdline->GetValue()).c_str());
|
||||||
m_cmdline->SetValue(wxEmptyString);
|
m_cmdline->SetValue(wxEmptyString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -445,7 +445,7 @@ bool wxMsgAlert(const char* caption, const char* text, bool yes_no, int /*Style*
|
|||||||
|
|
||||||
std::string wxStringTranslator(const char *text)
|
std::string wxStringTranslator(const char *text)
|
||||||
{
|
{
|
||||||
return WxStrToStr(wxGetTranslation(wxString::From8BitData(text)));
|
return WxStrToStr(wxGetTranslation(wxString::FromUTF8(text)));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Accessor for the main window class
|
// Accessor for the main window class
|
||||||
|
@ -180,8 +180,7 @@ wxArrayString GetListOfResolutions()
|
|||||||
|
|
||||||
VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, const std::string& _ininame)
|
VideoConfigDiag::VideoConfigDiag(wxWindow* parent, const std::string &title, const std::string& _ininame)
|
||||||
: wxDialog(parent, -1,
|
: wxDialog(parent, -1,
|
||||||
wxString::Format(_("Dolphin %s Graphics Configuration"),
|
wxString::Format(_("Dolphin %s Graphics Configuration"), wxGetTranslation(StrToWxStr(title))),
|
||||||
wxGetTranslation(wxString::From8BitData(title.c_str()))),
|
|
||||||
wxDefaultPosition, wxDefaultSize)
|
wxDefaultPosition, wxDefaultSize)
|
||||||
, vconfig(g_Config)
|
, vconfig(g_Config)
|
||||||
, ininame(_ininame)
|
, ininame(_ininame)
|
||||||
|
Reference in New Issue
Block a user