1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00

(trunk wx) patch from fulgas to get wx client building again

This commit is contained in:
Charles Kerr 2008-12-30 22:32:42 +00:00
parent 47bb6a0438
commit a48aab259c

View file

@ -53,6 +53,7 @@ extern "C"
{
#include <libtransmission/transmission.h>
#include <libtransmission/utils.h>
#include <libtransmission/bencode.h>
#include <images/play.xpm>
#include <images/stop.xpm>
@ -390,11 +391,16 @@ void MyFrame :: OnOpen( wxCommandEvent& WXUNUSED(event) )
bool
MyApp :: OnInit( )
{
const wxString downloadDir = wxStandardPaths::Get().GetDocumentsDir( );
tr_benc settings;
const char * configDir;
handle = tr_sessionInit( tr_getDefaultConfigDir(),
toStr(downloadDir).c_str(),
"wx" );
tr_bencInitDict( &settings, 0 );
tr_sessionGetDefaultSettings( &settings );
configDir = tr_getDefaultConfigDir( "xmission" );
handle = tr_sessionInit( "wx", configDir, true, &settings );
tr_bencFree( &settings );
wxCmdLineParser cmdParser( cmdLineDesc, argc, argv );
if( cmdParser.Parse ( ) )