Changeset 7555


Ignore:
Timestamp:
Dec 30, 2008, 10:32:42 PM (12 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wx/xmission.cc

    r7468 r7555  
    5454  #include <libtransmission/transmission.h>
    5555  #include <libtransmission/utils.h>
     56  #include <libtransmission/bencode.h>
    5657
    5758  #include <images/play.xpm>
     
    391392MyApp :: OnInit( )
    392393{
    393     const wxString downloadDir = wxStandardPaths::Get().GetDocumentsDir( );
    394 
    395     handle = tr_sessionInit( tr_getDefaultConfigDir(),
    396                              toStr(downloadDir).c_str(),
    397                              "wx" );
     394    tr_benc settings;
     395    const char * configDir;
     396
     397    tr_bencInitDict( &settings, 0 );
     398    tr_sessionGetDefaultSettings( &settings );
     399    configDir = tr_getDefaultConfigDir( "xmission" );
     400
     401    handle = tr_sessionInit( "wx", configDir, true, &settings );
     402   
     403    tr_bencFree( &settings );
    398404
    399405    wxCmdLineParser cmdParser( cmdLineDesc, argc, argv );
Note: See TracChangeset for help on using the changeset viewer.