Changeset 2025


Ignore:
Timestamp:
Jun 10, 2007, 4:10:28 PM (15 years ago)
Author:
livings124
Message:

set file properties (internally) properly, and move priority values to the .h

Location:
branches/file_selection/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/Torrent.h

    r2023 r2025  
    2525#import <Cocoa/Cocoa.h>
    2626#import <transmission.h>
     27
     28#define PRIORITY_LOW -1
     29#define PRIORITY_NORMAL 0
     30#define PRIORITY_HIGH 1
    2731
    2832#define INVALID -99
  • branches/file_selection/macosx/Torrent.m

    r2023 r2025  
    3030#define MAX_PIECES 324
    3131#define BLANK_PIECE -99
    32 
    33 #define PRIORITY_LOW -1
    34 #define PRIORITY_NORMAL 0
    35 #define PRIORITY_HIGH 1
    3632
    3733static int static_lastid = 0;
     
    16061602            path = @"";
    16071603       
    1608         priority = filePriorities ? [[filesShouldDownload objectAtIndex: i] intValue] : PRIORITY_NORMAL;
     1604        priority = filePriorities ? [[filePriorities objectAtIndex: i] intValue] : PRIORITY_NORMAL;
    16091605        [self insertPath: pathComponents forSiblings: fileList withParent: nil previousPath: path
    16101606                fileSize: file->length index: i priority: priority];
Note: See TracChangeset for help on using the changeset viewer.