28 #define WM_PLATFORM_SUPPORT_TEXT_SIZE 1024
38 if (
G.factory_startup) {
46 for (
LinkNode *line_node = lines; line_node; line_node = line_node->
next) {
47 char *line = line_node->link;
48 if (
STREQ(line, platform_support_key)) {
57 fprintf(fp,
"%s\n", platform_support_key);
71 BLI_dynstr_append(ds,
"https://docs.blender.org/manual/en/dev/troubleshooting/gpu/");
74 #elif defined(__APPLE__)
120 switch (support_level) {
135 "Your graphics card or driver has limited support. It may work, but with "
145 "Newer graphics drivers may be available to improve Blender support."));
163 "Your graphics card or driver is not supported."));
170 "Newer graphics drivers may be available to improve Blender support."));
187 bool show_message =
ELEM(
191 if ((
G.background ||
G.debug &
G_DEBUG) && show_message) {
192 printf(
"%s\n\n%s\n%s\n", title, message, link);
199 else if (show_message) {
201 title, message,
"Find Latest Drivers",
"Continue Anyway", link, dialog_options);
const char * BKE_appdir_folder_id(int folder_id, const char *subfolder)
#define BLENDER_PLATFORM_SUPPORT_FILE
A dynamically sized string ADT.
DynStr * BLI_dynstr_new(void) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
int BLI_dynstr_get_len(const DynStr *ds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_dynstr_free(DynStr *ds) ATTR_NONNULL()
void BLI_dynstr_get_cstring_ex(const DynStr *__restrict ds, char *__restrict rets) ATTR_NONNULL()
void BLI_dynstr_append(DynStr *__restrict ds, const char *cstr) ATTR_NONNULL()
File and directory operations.
FILE * BLI_fopen(const char *filepath, const char *mode) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_file_free_lines(struct LinkNode *lines)
struct LinkNode * BLI_file_read_as_lines(const char *file) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_join_dirfile(char *__restrict dst, size_t maxlen, const char *__restrict dir, const char *__restrict file) ATTR_NONNULL()
#define STR_CONCAT(dst, len, suffix)
#define BLT_I18NCONTEXT_ID_WINDOWMANAGER
#define CTX_IFACE_(context, msgid)
GHOST C-API function and type declarations.
static void update(bNodeTree *ntree)
void WM_ghost_show_message_box(const char *title, const char *message, const char *help_label, const char *continue_label, const char *link, GHOST_DialogOptions dialog_options)