Skip to content

Commit 95ceb19

Browse files
Add files via upload
1 parent d1bb844 commit 95ceb19

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ SDKVERSION = 11.4
55
ARCHS = arm64 arm64e
66
TrollLock_FILES = Tweak.x
77
DEBUG=0
8-
PACKAGE_VERSION=1.0.1
8+
PACKAGE_VERSION=1.0.2
99
include $(THEOS_MAKE_PATH)/tweak.mk
1010

1111
internal-stage::

Tweak.x

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#import <Foundation/Foundation.h>
2+
3+
%hook BSUICAPackageView
4+
- (id)initWithPackageName:(NSString *)arg1 inBundle:(id)arg2 {
5+
if(![arg1 containsString:@"lock"]) {
6+
return %orig;
7+
}
8+
9+
10+
NSBundle *trollBundle = [[NSBundle alloc] initWithPath:[NSString stringWithFormat:@"%@/%@", @"/Library/Application Support/TrollLock/" , @"trollformation.bundle"]];
11+
return %orig(@"trollformation",trollBundle);
12+
}
13+
%end

control

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: com.nathan.trolllock
22
Name: TrollLock
33
Description: Tweak that turns the faceID glyph into a trollface
4-
Version: 1.0.1
4+
Version: 1.0.2
55
Priority: optional
66
Section: Tweaks
77
Architecture: iphoneos-arm

0 commit comments

Comments
 (0)