Changeset 8873


Ignore:
Timestamp:
Aug 5, 2009, 2:13:45 AM (13 years ago)
Author:
livings124
Message:

get the mac build to compile again

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r8871 r8873  
    798798        tr_ctorSetMetainfoFromFile(ctor, [torrentPath UTF8String]);
    799799        int result = tr_torrentParse(ctor, &info);
    800         if (result != TR_OK)
     800        if (result != TR_PARSE_OK)
    801801        {
    802802            if (result == TR_PARSE_DUPLICATE)
     
    24382438        switch (tr_torrentParse(ctor, NULL))
    24392439        {
    2440             case TR_OK:
     2440            case TR_PARSE_OK:
    24412441                [self openFiles: [NSArray arrayWithObject: fullFile] addType: ADD_AUTO forcePath: nil];
    24422442               
     
    24462446                break;
    24472447           
    2448             case TR_EINVALID:
     2448            case TR_PARSE_ERR:
    24492449                [fAutoImportedNames removeObject: file];
    24502450        }
     
    26782678                tr_ctor * ctor = tr_ctorNew(fLib);
    26792679                tr_ctorSetMetainfoFromFile(ctor, [file UTF8String]);
    2680                 if (tr_torrentParse(ctor, NULL) == TR_OK)
     2680                if (tr_torrentParse(ctor, NULL) == TR_PARSE_OK)
    26812681                {
    26822682                    if (!fOverlayWindow)
     
    27402740                tr_ctor * ctor = tr_ctorNew(fLib);
    27412741                tr_ctorSetMetainfoFromFile(ctor, [file UTF8String]);
    2742                 if (tr_torrentParse(ctor, NULL) == TR_OK)
     2742                if (tr_torrentParse(ctor, NULL) == TR_PARSE_OK)
    27432743                    [filesToOpen addObject: file];
    27442744                tr_ctorFree(ctor);
  • trunk/macosx/DragOverlayWindow.m

    r8667 r8873  
    9090            tr_ctorSetMetainfoFromFile(ctor, [file UTF8String]);
    9191            tr_info info;
    92             if (tr_torrentParse(ctor, &info) == TR_OK)
     92            if (tr_torrentParse(ctor, &info) == TR_PARSE_OK)
    9393            {
    9494                count++;
  • trunk/macosx/Torrent.m

    r8870 r8873  
    16101610        tr_ctorSetPeerLimit(ctor, TR_FALLBACK, [fDefaults integerForKey: @"PeersTorrent"]);
    16111611       
    1612         int result = TR_EINVALID;
     1612        int result = TR_PARSE_ERR;
    16131613        if (path)
    16141614            result = tr_ctorSetMetainfoFromFile(ctor, [path UTF8String]);
    16151615       
    16161616        //backup - shouldn't be needed after upgrade to 1.70
    1617         if (result != TR_OK && hashString)
     1617        if (result != TR_PARSE_OK && hashString)
    16181618            result = tr_ctorSetMetainfoFromHash(ctor, [hashString UTF8String]);
    16191619       
    1620         if (result == TR_OK)
     1620        if (result == TR_PARSE_OK)
    16211621        {
    16221622            tr_info info;
    16231623            result = tr_torrentParse(ctor, &info);
    16241624           
    1625             if (result == TR_OK)
     1625            if (result == TR_PARSE_OK)
    16261626            {
    16271627                NSString * currentDownloadFolder = [self shouldUseIncompleteFolderForName: [NSString stringWithUTF8String: info.name]]
     
    16311631                fHandle = tr_torrentNew(ctor, NULL);
    16321632            }
    1633             if (result != TR_EINVALID)
     1633            if (result != TR_PARSE_ERR)
    16341634                tr_metainfoFree(&info);
    16351635        }
Note: See TracChangeset for help on using the changeset viewer.