mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-05-22 19:12:39 +00:00
Linux compile fix.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2559 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
67af94c339
commit
c0cf641779
11 changed files with 24 additions and 24 deletions
|
@ -386,7 +386,7 @@ void ConfigBox::SetButtonTextAll(int id, char text[128])
|
|||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
// Safety check to avoid crash
|
||||
if(joyinfo.size() > unsigned int(PadMapping[i].ID))
|
||||
if(joyinfo.size() > (u32)PadMapping[i].ID)
|
||||
if (joyinfo[PadMapping[i].ID].Name == joyinfo[PadMapping[notebookpage].ID].Name)
|
||||
SetButtonText(id, text, i);
|
||||
};
|
||||
|
@ -397,7 +397,7 @@ void ConfigBox::SaveButtonMappingAll(int Slot)
|
|||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
// This can occur when no gamepad is detected
|
||||
if(joyinfo.size() > unsigned int(PadMapping[i].ID))
|
||||
if(joyinfo.size() > (u32)PadMapping[i].ID)
|
||||
if (joyinfo[PadMapping[i].ID].Name == joyinfo[PadMapping[Slot].ID].Name)
|
||||
SaveButtonMapping(i, false, Slot);
|
||||
}
|
||||
|
@ -414,7 +414,7 @@ void ConfigBox::UpdateGUIAll(int Slot)
|
|||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
// Safety check to avoid crash
|
||||
if(joyinfo.size() > unsigned int(PadMapping[i].ID))
|
||||
if(joyinfo.size() > (u32)PadMapping[i].ID)
|
||||
if (joyinfo[PadMapping[i].ID].Name == joyinfo[PadMapping[Slot].ID].Name)
|
||||
UpdateGUI(i);
|
||||
}
|
||||
|
@ -660,7 +660,7 @@ void ConfigBox::CreateGUIControls()
|
|||
wxArrayString arrayStringFor_Joyname; // The string array
|
||||
if(NumGoodPads > 0)
|
||||
{
|
||||
for(int x = 0; unsigned int(x) < joyinfo.size(); x++)
|
||||
for(int x = 0; (u32)x < joyinfo.size(); x++)
|
||||
{
|
||||
arrayStringFor_Joyname.Add(wxString::FromAscii(joyinfo[x].Name.c_str()));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue