mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-17 01:33:16 +03:00
Show error instead of warning requester when essential library fails to open.
This commit is contained in:
parent
5776b39b8d
commit
91662977eb
@ -17,10 +17,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "amiga/libs.h"
|
#include "amiga/libs.h"
|
||||||
|
#include "amiga/misc.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
#include "utils/log.h"
|
#include "utils/log.h"
|
||||||
|
|
||||||
#include <proto/exec.h>
|
#include <proto/exec.h>
|
||||||
|
#include <proto/utility.h>
|
||||||
|
|
||||||
#define AMINS_LIB_OPEN(LIB, LIBVER, PREFIX, INTERFACE, INTVER, FAIL) \
|
#define AMINS_LIB_OPEN(LIB, LIBVER, PREFIX, INTERFACE, INTVER, FAIL) \
|
||||||
LOG(("Opening %s v%d", LIB, LIBVER)); \
|
LOG(("Opening %s v%d", LIB, LIBVER)); \
|
||||||
@ -32,7 +34,9 @@
|
|||||||
} else { \
|
} else { \
|
||||||
LOG(("Failed to open %s v%d", LIB, LIBVER)); \
|
LOG(("Failed to open %s v%d", LIB, LIBVER)); \
|
||||||
if(FAIL == true) { \
|
if(FAIL == true) { \
|
||||||
warn_user("CompError", LIB); \
|
STRPTR error = ASPrintf("Unable to open %s v%d", LIB, LIBVER); \
|
||||||
|
ami_misc_fatal_error(error); \
|
||||||
|
FreeVec(error); \
|
||||||
return false; \
|
return false; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
#include <exec/types.h>
|
#include <exec/types.h>
|
||||||
|
|
||||||
extern struct gui_file_table *amiga_file_table;
|
extern struct gui_file_table *amiga_file_table;
|
||||||
|
struct Window;
|
||||||
|
|
||||||
char *translate_escape_chars(const char *s);
|
char *translate_escape_chars(const char *s);
|
||||||
void ami_misc_fatal_error(const char *message);
|
void ami_misc_fatal_error(const char *message);
|
||||||
|
Loading…
Reference in New Issue
Block a user