26#define WM_PLATFORM_SUPPORT_TEXT_SIZE 1024
33 if (
G.factory_startup) {
37 if (!cfgdir.has_value()) {
45 for (
LinkNode *line_node = lines; line_node; line_node = line_node->
next) {
46 const char *line =
static_cast<char *
>(line_node->link);
47 if (
STREQ(line, platform_support_key)) {
56 fprintf(fp,
"%s\n", platform_support_key);
69 BLI_dynstr_append(ds,
"https://docs.blender.org/manual/en/dev/troubleshooting/gpu/");
72#elif defined(__APPLE__)
119 switch (support_level) {
134 "Your graphics card or driver has limited support. It may work, but with "
144 "Newer graphics drivers may be available to improve Blender support."));
171 "Your graphics card or macOS version is not supported"));
178 "Upgrading to the latest macOS version may improve Blender support"));
184 "Your graphics card or driver is not supported."));
190 "Newer graphics drivers may be available to improve Blender support."));
208 bool show_message =
ELEM(
210 bool show_continue = backend_detected;
211 bool show_link = backend_detected;
218 if ((
G.background ||
G.debug &
G_DEBUG) && show_message) {
219 printf(
"%s\n\n%s\n%s\n", title, message, link);
226 else if (show_message) {
229 "Find Latest Drivers",
230 show_continue ?
"Continue Anyway" :
"Exit",
std::optional< std::string > BKE_appdir_folder_id(int folder_id, const char *subfolder) ATTR_WARN_UNUSED_RESULT
#define BLENDER_PLATFORM_SUPPORT_FILE
A dynamically sized string ADT.
int BLI_dynstr_get_len(const DynStr *ds) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
DynStr * BLI_dynstr_new(void) ATTR_MALLOC ATTR_WARN_UNUSED_RESULT
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()
struct LinkNode * BLI_file_read_as_lines(const char *filepath) ATTR_WARN_UNUSED_RESULT ATTR_NONNULL()
void BLI_file_free_lines(struct LinkNode *lines)
#define BLI_path_join(...)
#define STR_CONCAT(dst, len, suffix)
#define BLT_I18NCONTEXT_ID_WINDOWMANAGER
#define CTX_IFACE_(context, msgid)
eGPUBackendType GPU_backend_get_type()
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)