clean up. less memory usage! </claim that nobody will notice>

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4010 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
daco65 2009-08-16 18:53:38 +00:00
parent 5d0ad965d7
commit 81ee1d1b10
1 changed files with 2 additions and 5 deletions

View File

@ -411,11 +411,8 @@ void *ClientSide::Entry()
if (value == 0x16) // UDP connection successful
{
Event->AppendText(_("Connection successful !\n"));
// note by DacoTaco : i hate to do this...
// TODO : make it better. old wxString::Format method crashed for some odd reason
std::string temp = "*Connection established to " + m_hostnick + "(" + m_addr + ")\n*Game is : " +
m_selectedgame + "\n ";
Event->AppendText( wxString::FromAscii( temp.c_str() ) );
Event->AppendText( wxString::Format( wxT("*Connection established to %s (%s)\n*Game is : %s\n "),
wxString(m_hostnick.c_str(),wxConvUTF8 ) , wxString(m_addr.c_str(),wxConvUTF8 ) , wxString(m_selectedgame.c_str() , wxConvUTF8) ));
}
else
{