From 65d88776db34a1723619376dda941118121a57d4 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Sun, 1 Jan 2017 00:34:29 +0100 Subject: [PATCH] ISOProperties: Fix encoding errors in window title It seems to be a regression, but I haven't bisected it. --- Source/Core/DolphinWX/ISOProperties/InfoPanel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinWX/ISOProperties/InfoPanel.cpp b/Source/Core/DolphinWX/ISOProperties/InfoPanel.cpp index f7e4b056ab..20d393c53d 100644 --- a/Source/Core/DolphinWX/ISOProperties/InfoPanel.cpp +++ b/Source/Core/DolphinWX/ISOProperties/InfoPanel.cpp @@ -358,8 +358,8 @@ void InfoPanel::OnRightClickBanner(wxMouseEvent& WXUNUSED(event)) void InfoPanel::OnSaveBannerImage(wxCommandEvent& WXUNUSED(event)) { wxFileDialog dialog(this, _("Save as..."), wxGetHomeDir(), - wxString::Format("%s.png", m_game_id->GetValue().c_str()), - wxALL_FILES_PATTERN, wxFD_SAVE | wxFD_OVERWRITE_PROMPT); + wxString::Format("%s.png", m_game_id->GetValue()), wxALL_FILES_PATTERN, + wxFD_SAVE | wxFD_OVERWRITE_PROMPT); if (dialog.ShowModal() == wxID_OK) { @@ -387,8 +387,8 @@ void InfoPanel::ChangeBannerDetails(DiscIO::Language language) filename = path + ' '; const auto game_id = m_game_list_item.GetGameID(); - const auto new_title = wxString::Format("%s%s: %s - %s", filename.c_str(), extension.c_str(), - game_id.c_str(), name.c_str()); + const auto new_title = wxString::Format("%s%s: %s - %s", StrToWxStr(filename), + StrToWxStr(extension), StrToWxStr(game_id), name); EmitTitleChangeEvent(new_title); }