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:
Chris Young 2014-11-09 00:25:29 +00:00
parent 433ef2c12a
commit 455e4d3d21

View File

@ -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) \