mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-04 22:57:21 +02:00
lib: dlopen versioned library
Instead of dlopen'ing the plain, not versioned library, use the versioned one with current interface, i.e. 0: libgamemode.so.0
This commit is contained in:
parent
ea3e135ae0
commit
8f8a6d4f91
@ -152,7 +152,7 @@ __attribute__((always_inline)) static inline int internal_load_libgamemode(void)
|
||||
void *libgamemode = NULL;
|
||||
|
||||
/* Try and load libgamemode */
|
||||
libgamemode = dlopen("libgamemode.so", RTLD_NOW);
|
||||
libgamemode = dlopen("libgamemode.so.0", RTLD_NOW);
|
||||
if (!libgamemode) {
|
||||
snprintf(internal_gamemode_client_error_string,
|
||||
sizeof(internal_gamemode_client_error_string),
|
||||
|
Loading…
x
Reference in New Issue
Block a user