From 95ceb1991ad9b4a20872e345561ad2c348aad715 Mon Sep 17 00:00:00 2001 From: verygenericname <87825638+verygenericname@users.noreply.github.com> Date: Mon, 18 Apr 2022 16:14:00 -0400 Subject: [PATCH] Add files via upload --- Makefile | 2 +- Tweak.x | 13 +++++++++++++ control | 2 +- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 Tweak.x diff --git a/Makefile b/Makefile index 60f95d1..b5e1236 100644 --- a/Makefile +++ b/Makefile @@ -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:: diff --git a/Tweak.x b/Tweak.x new file mode 100644 index 0000000..c606017 --- /dev/null +++ b/Tweak.x @@ -0,0 +1,13 @@ +#import + +%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 diff --git a/control b/control index 3159e61..ebecc0f 100644 --- a/control +++ b/control @@ -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