Blender V4.5
autoexec.cc File Reference
#include <cstdlib>
#include <cstring>
#include "DNA_userdef_types.h"
#include "BLI_fnmatch.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"
#include "BKE_autoexec.hh"
#include "BKE_global.hh"

Go to the source code of this file.

Functions

bool BKE_autoexec_match (const char *path)
 
bool BKE_autoexec_default_trust_source (const char *filepath)
 

Detailed Description

Currently just checks if a blend file can be trusted to autoexec, may add signing here later.

Definition in file autoexec.cc.

Function Documentation

◆ BKE_autoexec_default_trust_source()

bool BKE_autoexec_default_trust_source ( const char * filepath)
Returns
True when scripts in the blend-file at filepath are trusted to run automatically by default, used for "Trusted Source" when opening the file.

Definition at line 55 of file autoexec.cc.

References BKE_autoexec_match(), BLI_path_basename(), BLI_path_canonicalize_native(), FILE_MAX, G, STRNCPY(), and USER_SCRIPT_AUTOEXEC_DISABLE.

Referenced by ghost_event_proc(), uiTemplateRecentFiles(), and wm_open_init_use_scripts().

◆ BKE_autoexec_match()

bool BKE_autoexec_match ( const char * path)