linux compile fix
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1336 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
cf2468ec4d
commit
1c34151182
|
@ -141,18 +141,18 @@ void wxCheatsWindow::OnEvent_CheatsList_ItemSelected(wxCommandEvent& WXUNUSED (e
|
||||||
if ((int)indexList[i].uiIndex == index)
|
if ((int)indexList[i].uiIndex == index)
|
||||||
{
|
{
|
||||||
ARCode code = ActionReplay_GetARCode(i);
|
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 text[CHAR_MAX];
|
||||||
char* numcodes = text;
|
char* numcodes = text;
|
||||||
sprintf(numcodes, "Number of Codes: %i", code.ops.size());
|
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();
|
m_ListBox_CodesList->Clear();
|
||||||
for (size_t j = 0; j < code.ops.size(); j++)
|
for (size_t j = 0; j < code.ops.size(); j++)
|
||||||
{
|
{
|
||||||
char text2[CHAR_MAX];
|
char text2[CHAR_MAX];
|
||||||
char* ops = text2;
|
char* ops = text2;
|
||||||
sprintf(ops, "%08x %08x", code.ops[j].cmd_addr, code.ops[j].value);
|
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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -97,7 +97,7 @@ EVT_MENU(IDM_CONFIG_PAD_PLUGIN, CFrame::OnPluginPAD)
|
||||||
EVT_MENU(IDM_CONFIG_WIIMOTE_PLUGIN, CFrame::OnPluginWiimote)
|
EVT_MENU(IDM_CONFIG_WIIMOTE_PLUGIN, CFrame::OnPluginWiimote)
|
||||||
EVT_MENU(IDM_BROWSE, CFrame::OnBrowse)
|
EVT_MENU(IDM_BROWSE, CFrame::OnBrowse)
|
||||||
EVT_MENU(IDM_MEMCARD, CFrame::OnMemcard)
|
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_FULLSCREEN, CFrame::OnToggleFullscreen)
|
||||||
EVT_MENU(IDM_TOGGLE_DUALCORE, CFrame::OnToggleDualCore)
|
EVT_MENU(IDM_TOGGLE_DUALCORE, CFrame::OnToggleDualCore)
|
||||||
EVT_MENU(IDM_TOGGLE_SKIPIDLE, CFrame::OnToggleSkipIdle)
|
EVT_MENU(IDM_TOGGLE_SKIPIDLE, CFrame::OnToggleSkipIdle)
|
||||||
|
|
Loading…
Reference in New Issue