mirror of
https://github.com/ptitSeb/box64.git
synced 2025-02-21 15:01:48 +00:00
Preload libs if needed
This commit is contained in:
parent
5fe45a9341
commit
745a68f556
@ -849,6 +849,15 @@ int main(int argc, const char **argv, const char **env) {
|
||||
dynarec_wine_prereserve();
|
||||
#endif
|
||||
}
|
||||
// pre-load lib if needed
|
||||
if(ld_preload.size) {
|
||||
for (int i=0; i<ld_preload.size; ++i) {
|
||||
if(AddNeededLib(NULL, NULL, 0, ld_preload.paths[i], my_context, emu)) {
|
||||
printf_log(LOG_INFO, "Warning, cannot pre-load lib: \"%s\"\n", ld_preload.paths[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
FreeCollection(&ld_preload);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user