Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 60 lines (30 sloc) 2.031 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
#line 1 "/Users/kevinbradley/DVLP/SMFramework/SMFPopup.xm"
















#import "SMFPopup.h"
#include <substrate.h>
@class SMFPopupInfo; @class BRTrackInfoControl;
static Class $SMFPopupInfo;
#line 18 "/Users/kevinbradley/DVLP/SMFramework/SMFPopup.xm"


static id (*__ungrouped$SMFPopupInfo$_fetchCoverArt)(SMFPopupInfo*, SEL);static id $_ungrouped$SMFPopupInfo$_fetchCoverArt(SMFPopupInfo* self, SEL _cmd) {
    return [[BRThemeInfo sharedTheme] appleTVIcon];
}

static void (*__ungrouped$SMFPopupInfo$_updateTrackInfo)(SMFPopupInfo*, SEL);static void $_ungrouped$SMFPopupInfo$_updateTrackInfo(SMFPopupInfo* self, SEL _cmd) {
    id l = MSHookIvar<BRTrackInfoLayer *>(self, "_layer");
    
    id obj=[self object];
    if(obj!=nil && [obj isKindOfClass:[NSDictionary class]])
    {
        
        if([obj objectForKey:@"Image"])
        {
            
            if([obj objectForKey:@"Lines"])
                [l setLines:[obj objectForKey:@"Lines"] withImage:[obj objectForKey:@"Image"]];
            else
                [l setImage:[obj objectForKey:@"Image"]];
            
        }
        else
        {
            
            [l setLines:[NSArray arrayWithObjects:@"error",nil] withImage:[self _fetchCoverArt]];
        }
            
        
    }
    else
        [l setLines:[NSArray arrayWithObjects:@"error",nil] withImage:[self _fetchCoverArt]];


    
}

static __attribute__((constructor)) void _logosLocalInit() { NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init]; {{ $SMFPopupInfo = objc_allocateClassPair(objc_getClass("BRTrackInfoControl"), "SMFPopupInfo", 0); objc_registerClassPair($SMFPopupInfo); Class $$SMFPopupInfo = objc_getClass("SMFPopupInfo"); MSHookMessageEx($$SMFPopupInfo, @selector(_fetchCoverArt), (IMP)&$_ungrouped$SMFPopupInfo$_fetchCoverArt, (IMP*)&__ungrouped$SMFPopupInfo$_fetchCoverArt);MSHookMessageEx($$SMFPopupInfo, @selector(_updateTrackInfo), (IMP)&$_ungrouped$SMFPopupInfo$_updateTrackInfo, (IMP*)&__ungrouped$SMFPopupInfo$_updateTrackInfo);}} [pool drain]; }
Something went wrong with that request. Please try again.