Blender
V3.3
|
#include "wm_platform_support.h"
#include "wm_window_private.h"
#include <string.h>
#include "BLI_dynstr.h"
#include "BLI_fileops.h"
#include "BLI_linklist.h"
#include "BLI_path_util.h"
#include "BLI_string.h"
#include "BLI_sys_types.h"
#include "BLT_translation.h"
#include "BKE_appdir.h"
#include "BKE_global.h"
#include "GPU_platform.h"
#include "GHOST_C-api.h"
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 28 of file wm_platform_support.c.
|
static |
Check if user has already approved the given platform_support_key
.
Definition at line 33 of file wm_platform_support.c.
References BKE_appdir_folder_id(), BLENDER_PLATFORM_SUPPORT_FILE, BLENDER_USER_CONFIG, BLI_file_free_lines(), BLI_file_read_as_lines(), BLI_fopen(), BLI_join_dirfile(), FILE_MAX, G, LinkNode::next, NULL, result, STREQ, and update().
Referenced by WM_platform_support_perform_checks().
|
static |
Definition at line 67 of file wm_platform_support.c.
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().
Definition at line 98 of file wm_platform_support.c.
References BLT_I18NCONTEXT_ID_WINDOWMANAGER, CTX_IFACE_, ELEM, G, G_DEBUG, GHOST_DialogError, GHOST_DialogWarning, 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, 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().