Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
verygenericname authored Apr 18, 2022
1 parent d1bb844 commit 95ceb19
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SDKVERSION = 11.4
ARCHS = arm64 arm64e
TrollLock_FILES = Tweak.x
DEBUG=0
PACKAGE_VERSION=1.0.1
PACKAGE_VERSION=1.0.2
include $(THEOS_MAKE_PATH)/tweak.mk

internal-stage::
Expand Down
13 changes: 13 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#import <Foundation/Foundation.h>

%hook BSUICAPackageView
- (id)initWithPackageName:(NSString *)arg1 inBundle:(id)arg2 {
if(![arg1 containsString:@"lock"]) {
return %orig;
}


NSBundle *trollBundle = [[NSBundle alloc] initWithPath:[NSString stringWithFormat:@"%@/%@", @"/Library/Application Support/TrollLock/" , @"trollformation.bundle"]];
return %orig(@"trollformation",trollBundle);
}
%end
2 changes: 1 addition & 1 deletion control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: com.nathan.trolllock
Name: TrollLock
Description: Tweak that turns the faceID glyph into a trollface
Version: 1.0.1
Version: 1.0.2
Priority: optional
Section: Tweaks
Architecture: iphoneos-arm
Expand Down

0 comments on commit 95ceb19

Please sign in to comment.