diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-10 09:06:56 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-04-10 09:06:56 +0200 |
| commit | adfcfafdc24510938a01b156ffb373d22700e930 (patch) | |
| tree | 6f2d9d3e8ee98e9ce382c86c0ecc9043c25a4bc1 /src | |
| parent | 0a37f1cc30f9d31b1cc4b3cae353d134a66a1ffc (diff) | |
| download | box64-adfcfafdc24510938a01b156ffb373d22700e930.tar.gz box64-adfcfafdc24510938a01b156ffb373d22700e930.zip | |
Grab thread emu when calling init Library instead of NULL
Diffstat (limited to 'src')
| -rwxr-xr-x | src/librarian/library.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librarian/library.c b/src/librarian/library.c index c144d3b5..e5ab8a2f 100755 --- a/src/librarian/library.c +++ b/src/librarian/library.c @@ -151,7 +151,7 @@ static void initNativeLib(library_t *lib, box64context_t* context) { lib->type = 0; // Call librarian to load all dependant elf for(int i=0; i<lib->priv.w.needed; ++i) { - if(AddNeededLib(context->maplib, &lib->needed, lib, 0, lib->priv.w.neededlibs[i], context, NULL)) { // probably all native, not emulated, so that's fine + if(AddNeededLib(context->maplib, &lib->needed, lib, 0, lib->priv.w.neededlibs[i], context, thread_get_emu())) { printf_log(LOG_NONE, "Error: loading needed libs in elf %s\n", lib->priv.w.neededlibs[i]); return; } |