Ignore:
Timestamp:
Oct 12, 2007, 7:45:51 PM (15 years ago)
Author:
charles
Message:

Add an option for saving a torrent's destination path in its file. This can be overridden by clients with the `destination' argument in tr_torrentInit*()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r3311 r3379  
    270270    tr_globalLock( h );
    271271
    272     tor->destination = tr_strdup( destination );
    273 
    274272    tor->handle   = h;
    275273    tor->pexDisabled = 0;
     
    343341    loaded = tr_fastResumeLoad( tor, uncheckedPieces );
    344342
     343    /* a path passed in by the user overrides
     344       the one loaded by fastresume... */
     345    if( destination && *destination ) {
     346        tr_free( tor->destination );
     347        tor->destination = tr_strdup( destination );
     348    }
     349
    345350    /* the `paused' flag has highest precedence...
    346351       after that, the fastresume setting is used...
Note: See TracChangeset for help on using the changeset viewer.