Show
Ignore:
Timestamp:
02/26/10 04:22:15 (2 years ago)
Author:
lechium
Message:

Added some classes for downloading and updating the framework, they currently don't work since i can't create a BRController without headers passed 2.x

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/CommonMediaPlayer/Classes/CMPPlayerManager.m

    r1179 r1184  
    2828#import "CMPISODVDPlayer.h" 
    2929#import "CMPDVDImporter.h" 
     30#import "CMPInstaller.h" 
    3031 
    3132@implementation CMPPlayerManager 
     
    5051        if (self == nil) 
    5152                return self; 
    52          
     53        /* 
     54         
     55         This was some testing code to get it to check for updates and to override showing the players to try and force a download and 
     56         install, this didn't work out because my download class basis has the superclass of BRController, and since we link to headers 
     57         that are older than dirt, BRController doesn't exist, and every single workaround i pushed towards miserably failed. 
     58          
     59        if ([CMPInstaller checkForUpdate]) 
     60        { 
     61                return nil; 
     62        } 
     63          
     64        */ 
    5365        knownPlayers = [[NSMutableSet alloc] init]; 
    5466        knownControllers = [[NSMutableSet alloc] init]; 
     
    6476         
    6577        [self registerPlayer:[CMPDVDImporter class] forType:CMPPlayerManagerFileTypeDVDImport withExtensions:[NSArray arrayWithObject:@""]]; 
     78         
    6679         
    6780        return self;