Skip to content

Commit 73d9530

Browse files
committedDec 29, 2013
Intial Upload
Compiler Errors - Unusable
0 parents  commit 73d9530

File tree

7 files changed

+98
-0
lines changed

7 files changed

+98
-0
lines changed
 

‎ItunesRadioUnlimited.plist

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{ Filter = { Bundles = ( "com.apple.springboard" ); }; }

‎Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
include theos/makefiles/common.mk
2+
3+
TWEAK_NAME = ItunesRadioUnlimited
4+
ItunesRadioUnlimited_FILES = Tweak.xm
5+
6+
include $(THEOS_MAKE_PATH)/tweak.mk
7+
8+
after-install::
9+
install.exec "killall -9 SpringBoard"
10+
11+
LaunchNotifier_FRAMEWORKS = Radio

‎Tweak.xm

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
NSString *_skipFrequencyHooked;
2+
bool *_skipEnabledHooked;
3+
4+
%hook RadioStation
5+
6+
- (void)setSkipFrequency:(int)arg1 {
7+
// 'Hook' the variable
8+
_skipFrequencyHooked = MSHookIvar<int *>(self, "skipFrequency");
9+
// The name of the hooked variable does not need to be the same
10+
_skipFrequencyHooked = 99;
11+
12+
//Set original skip frequency to 99
13+
%orig(99);
14+
}
15+
16+
- (void)setSkipEnabled:(BOOL)arg1 {
17+
// 'Hook' the variable
18+
_skipEnabledHooked = MSHookIvar<bool *>(self, "skipEnabled");
19+
// The name of the hooked variable does not need to be the same
20+
_skipEnabledHooked = YES;
21+
22+
%orig(YES);
23+
}
24+
25+
- (void)setSkipIdentifier:(id)arg1 {
26+
%orig(nil);
27+
}
28+
29+
- (void)setSkipTimestamps:(id)arg1 {
30+
%orig(nil);
31+
}
32+
33+
%end

‎control

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
Package: com.appliesinc.itunesradiounlimited
2+
Name: Itunes Radio Unlimited
3+
Depends: mobilesubstrate
4+
Version: 0.0.1
5+
Architecture: iphoneos-arm
6+
Description: An awesome MobileSubstrate tweak!
7+
Maintainer: Trent M Rand
8+
Author: Trent M Rand
9+
Section: Tweaks

‎obj/.stamp

Whitespace-only changes.

‎obj/Tweak.xm.mm

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
#line 1 "Tweak.xm"
2+
3+
4+
5+
#include <logos/logos.h>
6+
#include <substrate.h>
7+
@class RadioStation;
8+
static void (*_logos_orig$_ungrouped$RadioStation$setSkipFrequency$)(RadioStation*, SEL, int); static void _logos_method$_ungrouped$RadioStation$setSkipFrequency$(RadioStation*, SEL, int); static void (*_logos_orig$_ungrouped$RadioStation$setSkipEnabled$)(RadioStation*, SEL, BOOL); static void _logos_method$_ungrouped$RadioStation$setSkipEnabled$(RadioStation*, SEL, BOOL); static void (*_logos_orig$_ungrouped$RadioStation$setSkipIdentifier$)(RadioStation*, SEL, id); static void _logos_method$_ungrouped$RadioStation$setSkipIdentifier$(RadioStation*, SEL, id); static void (*_logos_orig$_ungrouped$RadioStation$setSkipTimestamps$)(RadioStation*, SEL, id); static void _logos_method$_ungrouped$RadioStation$setSkipTimestamps$(RadioStation*, SEL, id);
9+
10+
#line 4 "Tweak.xm"
11+
12+
13+
static void _logos_method$_ungrouped$RadioStation$setSkipFrequency$(RadioStation* self, SEL _cmd, int arg1) {
14+
15+
16+
17+
18+
19+
20+
_logos_orig$_ungrouped$RadioStation$setSkipFrequency$(self, _cmd, 99);
21+
}
22+
23+
static void _logos_method$_ungrouped$RadioStation$setSkipEnabled$(RadioStation* self, SEL _cmd, BOOL arg1) {
24+
25+
26+
27+
28+
29+
_logos_orig$_ungrouped$RadioStation$setSkipEnabled$(self, _cmd, YES);
30+
}
31+
32+
static void _logos_method$_ungrouped$RadioStation$setSkipIdentifier$(RadioStation* self, SEL _cmd, id arg1) {
33+
_logos_orig$_ungrouped$RadioStation$setSkipIdentifier$(self, _cmd, nil);
34+
}
35+
36+
static void _logos_method$_ungrouped$RadioStation$setSkipTimestamps$(RadioStation* self, SEL _cmd, id arg1) {
37+
_logos_orig$_ungrouped$RadioStation$setSkipTimestamps$(self, _cmd, nil);
38+
}
39+
40+
41+
static __attribute__((constructor)) void _logosLocalInit() {
42+
{Class _logos_class$_ungrouped$RadioStation = objc_getClass("RadioStation"); MSHookMessageEx(_logos_class$_ungrouped$RadioStation, @selector(setSkipFrequency:), (IMP)&_logos_method$_ungrouped$RadioStation$setSkipFrequency$, (IMP*)&_logos_orig$_ungrouped$RadioStation$setSkipFrequency$);MSHookMessageEx(_logos_class$_ungrouped$RadioStation, @selector(setSkipEnabled:), (IMP)&_logos_method$_ungrouped$RadioStation$setSkipEnabled$, (IMP*)&_logos_orig$_ungrouped$RadioStation$setSkipEnabled$);MSHookMessageEx(_logos_class$_ungrouped$RadioStation, @selector(setSkipIdentifier:), (IMP)&_logos_method$_ungrouped$RadioStation$setSkipIdentifier$, (IMP*)&_logos_orig$_ungrouped$RadioStation$setSkipIdentifier$);MSHookMessageEx(_logos_class$_ungrouped$RadioStation, @selector(setSkipTimestamps:), (IMP)&_logos_method$_ungrouped$RadioStation$setSkipTimestamps$, (IMP*)&_logos_orig$_ungrouped$RadioStation$setSkipTimestamps$);} }
43+
#line 34 "Tweak.xm"

‎theos

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/opt/theos

0 commit comments

Comments
 (0)
Please sign in to comment.