diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-06-01 10:32:46 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-06-01 10:32:46 +0200 |
| commit | cd247ef6c13b718da3b891eae158fc86a67400ab (patch) | |
| tree | e43d582fb808608bb0513fb4235dcb83e235d49f /src/librarian | |
| parent | 104cf8a58b5c15b19d961f66375ff70c8d14a8cf (diff) | |
| download | box64-cd247ef6c13b718da3b891eae158fc86a67400ab.tar.gz box64-cd247ef6c13b718da3b891eae158fc86a67400ab.zip | |
Improved custom named libGL handling
Diffstat (limited to 'src/librarian')
| -rwxr-xr-x | src/librarian/library.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c index 68ccf919..4d2a1d22 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -233,12 +233,16 @@ static void initEmulatedLib(const char* path, library_t *lib, box64context_t* co loadEmulatedLib(libname, lib, context); } +extern char* libGL; library_t *NewLibrary(const char* path, box64context_t* context) { printf_log(LOG_DEBUG, "Trying to load \"%s\"\n", path); library_t *lib = (library_t*)calloc(1, sizeof(library_t)); lib->path = strdup(path); - lib->name = Path2Name(path); + if(libGL && !strcmp(path, libGL)) + lib->name = strdup("libGL.so.1"); + else + lib->name = Path2Name(path); lib->nbdot = NbDot(lib->name); lib->context = context; lib->type = -1; |