mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-15 16:52:40 +03:00
Don't bug the user if a non-essential library can't be opened - just log it.
Also log if the interface can't be obtained. If we've asked for the right library version, this should never fail.
This commit is contained in:
parent
433ef2c12a
commit
455e4d3d21
10
amiga/libs.c
10
amiga/libs.c
@ -26,9 +26,15 @@
|
||||
LOG(("Opening %s v%d", LIB, LIBVER)); \
|
||||
if((PREFIX##Base = OpenLibrary(LIB, LIBVER))) { \
|
||||
I##PREFIX = (struct PREFIX##IFace *)GetInterface(PREFIX##Base, INTERFACE, INTVER, NULL); \
|
||||
if(I##PREFIX == NULL) { \
|
||||
LOG(("Failed to get %s interface v%d of %s", INTERFACE, INTVER, LIB)); \
|
||||
} \
|
||||
} else { \
|
||||
warn_user("CompError", LIB); \
|
||||
if(FAIL == true) return false; \
|
||||
LOG(("Failed to open %s v%d", LIB, LIBVER)); \
|
||||
if(FAIL == true) { \
|
||||
warn_user("CompError", LIB); \
|
||||
return false; \
|
||||
} \
|
||||
}
|
||||
|
||||
#define AMINS_LIB_CLOSE(PREFIX) \
|
||||
|
Loading…
Reference in New Issue
Block a user