|
Blender V4.3
|
#include "wm_platform_support.hh"#include "wm_window_private.hh"#include <cstring>#include "BLI_dynstr.h"#include "BLI_fileops.h"#include "BLI_linklist.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLT_translation.hh"#include "BKE_appdir.hh"#include "BKE_global.hh"#include "GPU_platform.hh"Go to the source code of this file.
Macros | |
| #define | WM_PLATFORM_SUPPORT_TEXT_SIZE 1024 |
Functions | |
| static bool | wm_platform_support_check_approval (const char *platform_support_key, bool update) |
| static void | wm_platform_support_create_link (char *link) |
| bool | WM_platform_support_perform_checks () |
| #define WM_PLATFORM_SUPPORT_TEXT_SIZE 1024 |
Definition at line 26 of file wm_platform_support.cc.
Referenced by wm_platform_support_create_link(), and WM_platform_support_perform_checks().
|
static |
Check if user has already approved the given platform_support_key.
Definition at line 31 of file wm_platform_support.cc.
References BKE_appdir_folder_id(), BLENDER_PLATFORM_SUPPORT_FILE, BLENDER_USER_CONFIG, BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_fopen(), BLI_path_join, FILE_MAX, G, LinkNode::next, result, STREQ, and update().
Referenced by WM_platform_support_perform_checks().
|
static |
Definition at line 65 of file wm_platform_support.cc.
References BLI_assert, BLI_dynstr_append(), BLI_dynstr_free(), BLI_dynstr_get_cstring_ex(), BLI_dynstr_get_len(), BLI_dynstr_new(), GPU_DEVICE_ATI, GPU_DEVICE_INTEL, GPU_DEVICE_NVIDIA, GPU_DRIVER_ANY, GPU_OS_ANY, GPU_type_matches(), and WM_PLATFORM_SUPPORT_TEXT_SIZE.
Referenced by WM_platform_support_perform_checks().
| bool WM_platform_support_perform_checks | ( | ) |
Definition at line 96 of file wm_platform_support.cc.
References BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_IFACE_, ELEM, G, G_DEBUG, GHOST_DialogError, GHOST_DialogWarning, GPU_backend_get_type(), GPU_BACKEND_NONE, GPU_DEVICE_NVIDIA, GPU_DRIVER_ANY, GPU_OS_ANY, GPU_platform_gpu_name(), GPU_platform_support_level(), GPU_platform_support_level_key(), GPU_SUPPORT_LEVEL_LIMITED, GPU_SUPPORT_LEVEL_SUPPORTED, GPU_SUPPORT_LEVEL_UNSUPPORTED, GPU_type_matches(), printf, result, STR_CONCAT, WM_ghost_show_message_box(), wm_platform_support_check_approval(), wm_platform_support_create_link(), and WM_PLATFORM_SUPPORT_TEXT_SIZE.
Referenced by WM_init().