|
Blender
V2.93
|
#include <cstdio>#include "GHOST_ISystemPaths.h"#include "GHOST_Path-api.h"#include "GHOST_Types.h"#include "intern/GHOST_Debug.h"Go to the source code of this file.
Functions | |
| GHOST_TSuccess | GHOST_CreateSystemPaths (void) |
| GHOST_TSuccess | GHOST_DisposeSystemPaths (void) |
| const GHOST_TUns8 * | GHOST_getSystemDir (int version, const char *versionstr) |
| const GHOST_TUns8 * | GHOST_getUserDir (int version, const char *versionstr) |
| const GHOST_TUns8 * | GHOST_getUserSpecialDir (GHOST_TUserSpecialDirTypes type) |
| const GHOST_TUns8 * | GHOST_getBinaryDir () |
| void | GHOST_addToSystemRecentFiles (const char *filename) |
| void GHOST_addToSystemRecentFiles | ( | const char * | filename | ) |
Add the file to the operating system most recently used files
Definition at line 65 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::addToSystemRecentFiles(), and GHOST_ISystemPaths::get().
Referenced by wm_history_file_update().
| GHOST_TSuccess GHOST_CreateSystemPaths | ( | void | ) |
Creates the one and only instance of the system path access.
Definition at line 31 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::create().
Referenced by WM_init().
| GHOST_TSuccess GHOST_DisposeSystemPaths | ( | void | ) |
Disposes the one and only system.
Definition at line 36 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::dispose().
Referenced by WM_exit_ex().
| const GHOST_TUns8* GHOST_getBinaryDir | ( | void | ) |
Determine the dir in which the binary file is found.
Definition at line 59 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::get(), GHOST_ISystemPaths::getBinaryDir(), and NULL.
| const GHOST_TUns8* GHOST_getSystemDir | ( | int | version, |
| const char * | versionstr | ||
| ) |
Determine the base dir in which shared resources are located. It will first try to use "unpack and run" path, then look for properly installed path, including versioning.
Definition at line 41 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::get(), GHOST_ISystemPaths::getSystemDir(), and NULL.
Referenced by get_path_system_ex().
| const GHOST_TUns8* GHOST_getUserDir | ( | int | version, |
| const char * | versionstr | ||
| ) |
Determine the base dir in which user configuration is stored, including versioning.
Definition at line 47 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::get(), GHOST_ISystemPaths::getUserDir(), and NULL.
Referenced by get_path_user_ex().
| const GHOST_TUns8* GHOST_getUserSpecialDir | ( | GHOST_TUserSpecialDirTypes | type | ) |
Determine a special ("well known") and easy to reach user directory.
~/Documents/). Definition at line 53 of file GHOST_Path-api.cpp.
References GHOST_ISystemPaths::get(), GHOST_ISystemPaths::getUserSpecialDir(), NULL, and type.
Referenced by BKE_appdir_folder_documents().