From 1c3415118288f8ee9ed189a1b8f70a2d598b0745 Mon Sep 17 00:00:00 2001 From: nakeee Date: Sun, 30 Nov 2008 12:01:36 +0000 Subject: [PATCH] linux compile fix git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1336 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/CheatsWindow.cpp | 8 ++++---- Source/Core/DolphinWX/Src/Frame.cpp | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Core/DolphinWX/Src/CheatsWindow.cpp b/Source/Core/DolphinWX/Src/CheatsWindow.cpp index 49cf468a8c..102f8446fc 100644 --- a/Source/Core/DolphinWX/Src/CheatsWindow.cpp +++ b/Source/Core/DolphinWX/Src/CheatsWindow.cpp @@ -141,18 +141,18 @@ void wxCheatsWindow::OnEvent_CheatsList_ItemSelected(wxCommandEvent& WXUNUSED (e if ((int)indexList[i].uiIndex == index) { ARCode code = ActionReplay_GetARCode(i); - m_Label_Codename->SetLabel("Name: " + wxString::FromAscii(code.name.c_str())); + m_Label_Codename->SetLabel(wxT("Name: ") + wxString::FromAscii(code.name.c_str())); char text[CHAR_MAX]; char* numcodes = text; sprintf(numcodes, "Number of Codes: %i", code.ops.size()); - m_Label_NumCodes->SetLabel(numcodes); + m_Label_NumCodes->SetLabel(wxString::FromAscii(numcodes)); m_ListBox_CodesList->Clear(); for (size_t j = 0; j < code.ops.size(); j++) { char text2[CHAR_MAX]; char* ops = text2; sprintf(ops, "%08x %08x", code.ops[j].cmd_addr, code.ops[j].value); - m_ListBox_CodesList->Append(ops); + m_ListBox_CodesList->Append(wxString::FromAscii(ops)); } } } @@ -175,4 +175,4 @@ void wxCheatsWindow::OnEvent_ButtonUpdateCodes_Press(wxCommandEvent& WXUNUSED (e { ActionReplay_SetARCode_IsActive(m_CheckListBox_CheatsList->IsChecked(indexList[i].uiIndex), indexList[i].index); } -} \ No newline at end of file +} diff --git a/Source/Core/DolphinWX/Src/Frame.cpp b/Source/Core/DolphinWX/Src/Frame.cpp index 8b2bb43dfc..7114e3cd20 100644 --- a/Source/Core/DolphinWX/Src/Frame.cpp +++ b/Source/Core/DolphinWX/Src/Frame.cpp @@ -97,7 +97,7 @@ EVT_MENU(IDM_CONFIG_PAD_PLUGIN, CFrame::OnPluginPAD) EVT_MENU(IDM_CONFIG_WIIMOTE_PLUGIN, CFrame::OnPluginWiimote) EVT_MENU(IDM_BROWSE, CFrame::OnBrowse) EVT_MENU(IDM_MEMCARD, CFrame::OnMemcard) -EVT_MENU(IDM_CHEATS, OnShow_CheatsWindow) +EVT_MENU(IDM_CHEATS, CFrame::OnShow_CheatsWindow) EVT_MENU(IDM_TOGGLE_FULLSCREEN, CFrame::OnToggleFullscreen) EVT_MENU(IDM_TOGGLE_DUALCORE, CFrame::OnToggleDualCore) EVT_MENU(IDM_TOGGLE_SKIPIDLE, CFrame::OnToggleSkipIdle)