Changeset 295


Ignore:
Timestamp:
Jun 8, 2006, 5:48:40 AM (16 years ago)
Author:
livings124
Message:

trying to get it to work

Location:
branches/save_torrent_files
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/save_torrent_files/Transmission.xcodeproj/project.pbxproj

    r292 r295  
    220220                4DCCBB3C09C3D71100D3CABF /* TorrentCell.m */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.objc; name = TorrentCell.m; path = macosx/TorrentCell.m; sourceTree = "<group>"; };
    221221                4DCCBB3D09C3D71100D3CABF /* TorrentCell.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = TorrentCell.h; path = macosx/TorrentCell.h; sourceTree = "<group>"; };
    222                 4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
     222                4DDBB71909E16BAE00284745 /* transmissioncli */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = transmissioncli; sourceTree = BUILT_PRODUCTS_DIR; };
    223223                4DDBB71B09E16BF100284745 /* transmissioncli.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = transmissioncli.c; path = cli/transmissioncli.c; sourceTree = "<group>"; };
    224224                4DDFDD20099A5D8E00189D81 /* DownloadBadge.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = DownloadBadge.png; path = macosx/Images/DownloadBadge.png; sourceTree = "<group>"; };
  • branches/save_torrent_files/macosx/English.lproj/PrefsWindow.nib/info.nib

    r294 r295  
    1010                <string>345 472 462 212 0 0 1152 842 </string>
    1111                <key>41</key>
    12                 <string>262 506 462 274 0 0 1152 842 </string>
     12                <string>345 441 462 274 0 0 1152 842 </string>
    1313                <key>66</key>
    1414                <string>347 526 462 104 0 0 1152 842 </string>
     
    1616        <key>IBFramework Version</key>
    1717        <string>446.1</string>
     18        <key>IBOpenObjects</key>
     19        <array>
     20                <integer>41</integer>
     21        </array>
    1822        <key>IBSystem Version</key>
    1923        <string>8I127</string>
  • branches/save_torrent_files/macosx/Torrent.m

    r294 r295  
    4444
    4545- (id) initWithPath: (NSString *) path lib: (tr_handle_t *) lib
    46 {
    47     id torrent = [self initWithPath: path lib: lib
    48                     date: nil stopRatioSetting: nil
    49                     ratioLimit: nil];
    50     NSLog(path);
     46{NSLog(path);
     47    id torrent = [self initWithPath: path lib: lib date: nil
     48                    stopRatioSetting: nil ratioLimit: nil];
     49                   
     50    if (!torrent)
     51        return nil;
     52
    5153    if (fPrivateSaved && [fDefaults boolForKey: @"DeleteOriginalTorrent"])
    5254        [self trashPath: path];
     
    338340- (NSString *) hashString
    339341{
    340     /*NSMutableString * string = [NSMutableString
    341         stringWithCapacity: SHA_DIGEST_LENGTH];
    342     int i;
    343     for( i = 0; i < SHA_DIGEST_LENGTH; i++ )
    344     {
    345         [string appendFormat: @"%02x", fInfo->hash[i]];
    346     }
    347     return string;*/
    348    
    349342    return [NSString stringWithUTF8String: fInfo->hashString];
    350343}
     
    519512    int error;
    520513    if (!path || !(fHandle = tr_torrentInit(fLib, [path UTF8String],
    521                     fPrivateSaved ? TR_FSAVEPRIVATE : 0, &error)))
     514                    fPrivateSaved ? TR_FSAVEPRIVATE : 0, & error)))
    522515    {
    523516        [self release];
    524517        return nil;
    525518    }
    526    
     519
    527520    return [self initForSuccessWithDate: date stopRatioSetting: stopRatioSetting ratioLimit: ratioLimit];
    528521}
     
    540533
    541534    int error;
    542     if (!hashString || !(fHandle = tr_torrentInitSaved(fLib, [hashString UTF8String], TR_FSAVEPRIVATE, &error)))
     535    if (!hashString || !(fHandle = tr_torrentInitSaved(fLib, [hashString UTF8String], TR_FSAVEPRIVATE, & error)))
    543536    {
    544537        [self release];
Note: See TracChangeset for help on using the changeset viewer.