NETPLAY: just some minor clean up. also, apparently netplay already works to public(since 4003) ip's (internet) but not private or loopback (lan or 2 clients on 1 pc) .

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4006 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2009-08-16 14:13:25 +00:00
parent 9e08cd6fc7
commit 3124aa803c
2 changed files with 3 additions and 3 deletions

View File

@ -414,7 +414,7 @@ void NetPlay::ChangeSelectedGame(std::string game)
m_selectedGame = game; m_selectedGame = game;
UpdateNetWindow(false); UpdateNetWindow(false);
m_Logging->AppendText(wxString::Format(wxT("*Game has been changed to : %s\n"), game.c_str())); m_Logging->AppendText(wxString::Format( wxT(" *Game has been changed to : %s \r\n "), wxString(game.c_str(),wxConvUTF8 )));
NOTICE_LOG(NETPLAY,"Game has been changed to : %s \n",game.c_str()); NOTICE_LOG(NETPLAY,"Game has been changed to : %s \n",game.c_str());
} }
} }

View File

@ -360,7 +360,7 @@ void NetPlay::UpdateNetWindow(bool update_infos, wxString infos)
{ {
m_critical.Enter(); m_critical.Enter();
//m_Game_str->SetLabel(wxString::Format(wxT(" Game : %s"), m_selectedGame.c_str())); //m_Game_str->SetLabel(wxString::Format(wxT(" Game : %s"), m_selectedGame.c_str()));
m_Game_str->SetLabel(wxString::FromAscii( ( wxT( "Game %s"), m_selectedGame.c_str() ))); m_Game_str->SetLabel(wxString::FromUTF8( ( wxT( "Game %s"), m_selectedGame.c_str() )));
m_critical.Leave(); m_critical.Leave();
} }
} }
@ -547,7 +547,7 @@ void GameListPopup::OnButtons(wxCommandEvent& event)
{ {
case wxID_OK: case wxID_OK:
if (m_GameList->GetSelection()-1 != wxNOT_FOUND) if (m_GameList->GetSelection()-1 != wxNOT_FOUND)
m_netParent->ChangeSelectedGame(std::string(m_GameList_str[m_GameList->GetSelection()].mb_str())); m_netParent->ChangeSelectedGame(std::string(m_GameList_str[m_GameList->GetSelection()-1].mb_str()));
Destroy(); Destroy();
break; break;
case wxID_CANCEL: case wxID_CANCEL: