mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
fix: the virtual pads reach non-Steam programs, where udev is resolved through dlsym (#1593)
This commit is contained in:
1 parent
c2adf3b3dd
commit
c4f4e18f87
3 files changed
+1456
-60
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -100,7 +100,11 @@ static long path_statx(int dirfd, const char *path, int flags, unsigned int mask
|
||||
return next_statx(dirfd, path, flags, mask, out);
|
||||
}
|
||||
|
||||
void bl_inputudev_note_dlopen(const char *path, void *handle) __attribute__((weak, visibility("hidden")));
|
||||
|
||||
void *dlopen(const char *filename, int flags) {
|
||||
void *handle;
|
||||
|
||||
if (!real_dlopen) {
|
||||
real_dlopen = (void *(*)(const char *, int))dlsym(RTLD_NEXT, "dlopen");
|
||||
}
|
||||
@@ -109,7 +113,9 @@ void *dlopen(const char *filename, int flags) {
|
||||
if (basename && strcmp(basename, "vrclient.so") == 0) {
|
||||
flags &= ~RTLD_DEEPBIND;
|
||||
}
|
||||
return real_dlopen(filename, flags);
|
||||
handle = real_dlopen != NULL ? real_dlopen(filename, flags) : NULL;
|
||||
if (handle != NULL && bl_inputudev_note_dlopen != NULL) bl_inputudev_note_dlopen(filename, handle);
|
||||
return handle;
|
||||
}
|
||||
|
||||
int dd_fsync_syscall(long number, const long *args, long *ret) __attribute__((visibility("hidden")));
|
||||
|
||||
Reference in new issue
Block a user