From 761fed09b19a6bf7fae411f0c68540f6e2829b71 Mon Sep 17 00:00:00 2001 From: Eilionoir Tunnicliff Date: Tue, 21 Mar 2023 10:58:19 -0400 Subject: [PATCH] That wasn't supposed to be there, whoops! --- Natives/main_hook.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Natives/main_hook.m b/Natives/main_hook.m index 65fe28b2..77b75358 100644 --- a/Natives/main_hook.m +++ b/Natives/main_hook.m @@ -51,7 +51,7 @@ void* hooked_dlopen(const char* path, int mode) { void hooked_exit(int code) { NSLog(@"exit(%d) called", code); if (code == 0) { - UIKit_returnToSplitView(); + orig_exit(code); return; } handle_fatal_exit(code); @@ -60,7 +60,7 @@ void hooked_exit(int code) { (*runtimeJavaVMPtr)->DestroyJavaVM(runtimeJavaVMPtr); } - UIKit_returnToSplitView(); + orig_exit(code); } int hooked_open(const char *path, int oflag, ...) {