From deec5f75ee1a8ccbe32c8780b1d17284fc87b0f1 Mon Sep 17 00:00:00 2001 From: Billy Laws Date: Fri, 30 Jun 2023 18:04:51 +0100 Subject: [PATCH] Inverse priority when loading gsl library Most custom drivers ship with notgsl or vkbgsl, which should be loaded instead of the system gsl to prevent conflicts. --- src/hook/hook_impl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hook/hook_impl.cpp b/src/hook/hook_impl.cpp index bd3356d..50e79a9 100644 --- a/src/hook/hook_impl.cpp +++ b/src/hook/hook_impl.cpp @@ -96,11 +96,11 @@ __attribute__((visibility("default"))) void *hook_android_dlopen_ext(const char return fallback(); } - auto libgslHandle{android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo)}; + auto libgslHandle{android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo)}; if (!libgslHandle) { libgslHandle = android_dlopen_ext("notgsl.so", RTLD_NOW, &newExtinfo); if (!libgslHandle) - libgslHandle = android_dlopen_ext("vkbgsl.so", RTLD_NOW, &newExtinfo); + libgslHandle = android_dlopen_ext("libgsl.so", RTLD_NOW, &newExtinfo); } if (libgslHandle) {