warning fix by olejl
We should get rid of that wxmessagebox... git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1731 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
4286b210a5
commit
232fe74536
|
@ -89,10 +89,10 @@ void DEBUG_QUIT()
|
|||
int Config::CheckForDuplicateJoypads(bool OK)
|
||||
{
|
||||
// Count the number of duplicate names
|
||||
int NumDuplicates = 0, Duplicate;
|
||||
int NumDuplicates = 0, Duplicate = 0;
|
||||
for(u32 i = 0; i < 4; i++)
|
||||
{
|
||||
for(int j = 0; j < 4; j++)
|
||||
for(u32 j = 0; j < 4; j++)
|
||||
{
|
||||
// Avoid potential crash
|
||||
if(joysticks[i].ID >= SDL_NumJoysticks() || joysticks[j].ID >= SDL_NumJoysticks()) continue;
|
||||
|
@ -136,7 +136,7 @@ int Config::CheckForDuplicateJoypads(bool OK)
|
|||
" message and close the configuration window and don't show this message again.]"));
|
||||
|
||||
ReturnMessage = wxMessageBox(wxString::Format
|
||||
(wxT("%s%s"), MainText , ExtendedText), wxT("Notice"),
|
||||
(MainText + ExtendedText), wxT("Notice"),
|
||||
(wxOK | wxCANCEL) | wxICON_INFORMATION, 0, 100);
|
||||
if (ReturnMessage == wxCANCEL) g_Config.bSaveByIDNotice = false;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ int Config::CheckForDuplicateJoypads(bool OK)
|
|||
"\n\n[Select 'Cancel' if you don't want to see this information again.]"));
|
||||
|
||||
ReturnMessage = wxMessageBox(wxString::Format
|
||||
(wxT("%s%s"), MainText , ExtendedText), wxT("Notice"),
|
||||
(MainText + ExtendedText), wxT("Notice"),
|
||||
(wxOK | wxCANCEL) | wxICON_INFORMATION, 0, 100);
|
||||
if (ReturnMessage == wxCANCEL) g_Config.bSaveByIDNotice = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue