From 464c33c6bc1ceadcd159a7c8cf3a126a43ef7735 Mon Sep 17 00:00:00 2001 From: JacobCXDev Date: Sat, 6 Feb 2021 11:49:39 +0000 Subject: [PATCH] Fix up imports --- src/Objective-C/Tweak/Tweak.x | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/Objective-C/Tweak/Tweak.x b/src/Objective-C/Tweak/Tweak.x index 08dc85a..e5bf12b 100644 --- a/src/Objective-C/Tweak/Tweak.x +++ b/src/Objective-C/Tweak/Tweak.x @@ -7,6 +7,7 @@ // #import "Tweak.h" +#import #import #import #import "../Globals.h" @@ -14,11 +15,6 @@ #import "../View/IrisRoundedBorderLayer.h" #import "../Controller/IrisTagListTableViewController.h" -// MobileSubstrate - -typedef void (*MSHookMemory_t)(void *, const void *, size_t); -static MSHookMemory_t MSHookMemory; - // Static Variables static bool shouldOpenWithDefaults = false; @@ -1230,7 +1226,6 @@ static NSMutableArray *filterConversations(NSArray *conversations, IrisConversat if (isQuickSwitchEnabled) { void *handle = dlopen("/Library/Frameworks/CydiaSubstrate.framework/CydiaSubstrate", RTLD_NOW); if (handle) { - MSHookMemory = (MSHookMemory_t)(dlsym(handle, "MSHookMemory")); favouritesSectionSym = MSFindSymbol(MSGetImageByName("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit"), "_CKAppStripFavoritesSection"); recentsSectionSym = MSFindSymbol(MSGetImageByName("/System/Library/PrivateFrameworks/ChatKit.framework/ChatKit"), "_CKAppStripRecentsSection"); const NSInteger favouritesSection = 1;