From cee58e2c237e512fb97bf30e673cf2fbc4473191 Mon Sep 17 00:00:00 2001 From: tomikun <60690056+alexytomi@users.noreply.github.com> Date: Tue, 28 Jul 2026 14:49:45 +0800 Subject: [PATCH] regression: Accidentally broke SDL integration detection, oops --- app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c b/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c index 73fa746fb..af0878f53 100644 --- a/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c +++ b/app_pojavlauncher/src/main/jni/native_hooks/sdl_hook.c @@ -58,6 +58,7 @@ static bool custom_SDL_InitSubSystem_Func(SDL_InitFlags flags) { void create_sdl_hooks(bytehook_hook_all_t bytehook_hook_all_p) { - bytehook_stub_t stub_SDL_InitSubSystem = bytehook_hook_all_p("libSDL3.so", "SDL_InitSubSystem", &custom_SDL_InitSubSystem_Func, NULL, NULL); + // Don't set callee_path_name to anything besides NULL or else it won't be able to find the symbol + bytehook_stub_t stub_SDL_InitSubSystem = bytehook_hook_all_p(NULL, "SDL_InitSubSystem", &custom_SDL_InitSubSystem_Func, NULL, NULL); LOGI("Successfully initialized SDL hooks, stubs: %p, %p\n", stub_SDL_InitSubSystem); } \ No newline at end of file