Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mbilker committed Apr 7, 2012
0 parents commit d9ff0f9
Show file tree
Hide file tree
Showing 11 changed files with 73 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
._*
.theos
obj
_
1 change: 1 addition & 0 deletions DinerDashAll.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ Filter = { Bundles = ( "com.ooi.dinerdash" ); }; }
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
THEOS_DEVICE_IP = 192.168.1.111
THEOS_DEVICE_PORT = 22

include theos/makefiles/common.mk

TWEAK_NAME = DinerDashAll
DinerDashAll_FILES = Tweak.xm

include $(THEOS_MAKE_PATH)/tweak.mk
49 changes: 49 additions & 0 deletions Tweak.xm
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Diner Dash All
// Run Diner Dash on all iOS devices
// by mbilker

%hook UIDevicePlatform

- (id)platform
{
//%log;
//id p = %orig;
//NSLog(@"platform: '%@'",p);
id p = @"iPod3,1";
return p;
}

- (id)platformString
{
//%log;
//id ps = %orig;
//NSLog(@"platformString: '%@'",ps);
id ps = @"iPod3G";
return ps;
}

- (BOOL)supportsBluetoothNetworking
{
//%log;
BOOL s = %orig;
NSLog(@"supportsBluetoothNetworking: '%@'",s ? @"YES" : @"NO");
return s;
}

- (int)majorSystemVersion
{
//%log;
int msv = %orig;
NSLog(@"majorSystemVersion: '%d'",msv);
return msv;
}

- (int)minorSystemVersion
{
//%log;
int msv = %orig;
NSLog(@"majorSystemVersion: '%d'",msv);
return msv;
}

%end
9 changes: 9 additions & 0 deletions control
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Package: us.mbilker.dinerdashall
Name: Diner Dash All
Depends: mobilesubstrate
Version: 0.0.1
Architecture: iphoneos-arm
Description: An awesome MobileSubstrate tweak!
Maintainer: mbilker
Author: mbilker
Section: Tweaks
1 change: 1 addition & 0 deletions theos
Binary file added us.mbilker.dinerdashall_0.0.1-2_iphoneos-arm.deb
Binary file not shown.
Binary file added us.mbilker.dinerdashall_0.0.1-3_iphoneos-arm.deb
Binary file not shown.
Binary file added us.mbilker.dinerdashall_0.0.1-4_iphoneos-arm.deb
Binary file not shown.
Binary file added us.mbilker.dinerdashall_0.0.1-5_iphoneos-arm.deb
Binary file not shown.
Binary file added us.mbilker.dinerdashall_0.0.1-6_iphoneos-arm.deb
Binary file not shown.

0 comments on commit d9ff0f9

Please sign in to comment.