15 #include "configVariableSearchPath.h" 16 #include "executionEnvironment.h" 24 void ConfigVariableSearchPath::
25 reload_search_path() {
27 mark_cache_valid(_local_modified);
31 int num_unique_references = _core->get_num_unique_references();
32 for (
int i = 0; i < num_unique_references; i++) {
41 if (!expanded.empty()) {
49 num_unique_references == 0) {
51 _cache = _default_value;
string get_dirname() const
Returns the directory part of the filename.
The internal definition of a ConfigVariable.
void clear()
Removes all the directories from the search list.
bool is_empty() const
Returns true if the search list is empty, false otherwise.
bool make_true_case()
On a case-insensitive operating system (e.g.
void append_directory(const Filename &directory)
Adds a new directory to the end of the search list.
void append_path(const string &path, const string &separator=string())
Adds all of the directories listed in the search path to the end of the search list.
const string & get_name() const
Returns the name of the page.
The name of a file, such as a texture file or an Egg file.
ConfigPage * get_page() const
Returns the page on which this declaration can be found.
A page of ConfigDeclarations that may be loaded or unloaded.
static void clear_shadow(const string &var)
Removes a value set by a previous call to shadow_environment_variable(), and lets the actual value of...
static string expand_string(const string &str)
Reads the string, looking for environment variable names marked by a $.
A single declaration of a config variable, typically defined as one line in a .prc file...
static void shadow_environment_variable(const string &var, const string &value)
Changes the apparent definition of the indicated environment variable by masking it within this class...
const string & get_string_value() const
Returns the value assigned to this variable.
static Filename from_os_specific(const string &os_specific, Type type=T_general)
This named constructor returns a Panda-style filename (that is, using forward slashes, and no drive letter) based on the supplied filename string that describes a filename in the local system conventions (for instance, on Windows, it may use backslashes or begin with a drive letter and a colon).