summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bingner <sam@bingner.com>2019-09-05 20:59:40 -1000
committerSam Bingner <sam@bingner.com>2019-09-05 20:59:40 -1000
commit6ba785c1cc0dfa9eb0ce65bb03f4fab9f6eeaa91 (patch)
tree832660e3cee0355db7d37da931a87fcbea0022b7
parent1f226950b01b961674b368554570822c69826c43 (diff)
Add arm64e arch
-rw-r--r--Makefile3
-rw-r--r--Tweak.xm2
2 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ba6aa4e..54e1360 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
TARGET := iphone:11.0:11.0
-ARCHS := arm64
+ARCHS := arm64 arm64e
PACKAGE_VERSION := $(shell ./version.sh)
include theos/makefiles/common.mk
TWEAK_NAME := MobileSafety
+MobileSafety_CFLAGS := -Wno-return-stack-address
MobileSafety_FILES := Tweak.xm
MobileSafety_FRAMEWORKS := UIKit
diff --git a/Tweak.xm b/Tweak.xm
index 265744d..77f7fd7 100644
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -32,7 +32,7 @@ template <typename Type_>
static inline Type_ &MYHookIvar(id self, const char *name) {
Ivar ivar(class_getInstanceVariable(object_getClass(self), name));
void *value = ivar == NULL ? NULL : *reinterpret_cast<void **>(reinterpret_cast<char *>(self) + ivar_getOffset(ivar));
- return *reinterpret_cast<Type_ *>(&value);
+ return *(reinterpret_cast<Type_ *>(&value));
}