mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
here we go.
This commit is contained in:
parent
d143358212
commit
5ca922b0ff
@ -70,3 +70,7 @@ INLINE void ConfigTable::ArgSuffixDefault(void) {
|
|||||||
INLINE void ConfigTable::CommandStubDefault(void) {
|
INLINE void ConfigTable::CommandStubDefault(void) {
|
||||||
commandstub = "CONFIG";
|
commandstub = "CONFIG";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
INLINE ConfigString ConfigTable::GetConfigPath(void) const {
|
||||||
|
return configpath;
|
||||||
|
}
|
||||||
|
@ -165,16 +165,15 @@ void ConfigTable::ReadConfigFile(void) {
|
|||||||
if (microconfig_cat->is_spam())
|
if (microconfig_cat->is_spam())
|
||||||
microconfig_cat->spam() << "examining file '" << config_file << "'"
|
microconfig_cat->spam() << "examining file '" << config_file << "'"
|
||||||
<< endl;
|
<< endl;
|
||||||
/*
|
if (config_file.is_executable()) {
|
||||||
if (file_access(convert_executable_pathname(config_file), X_OK) == 0) {
|
ConfigString line = config_file.to_os_specific() + " "
|
||||||
ConfigString line = config_file + " " + ExecutionEnvironment::get_binary_name();
|
+ ExecutionEnvironment::get_binary_name();
|
||||||
if (microconfig_cat->is_spam())
|
if (microconfig_cat->is_spam())
|
||||||
microconfig_cat->spam() << "file is executable, running '"
|
microconfig_cat->spam() << "file is executable, running '"
|
||||||
<< line << "'" << endl;
|
<< line << "'" << endl;
|
||||||
ipfstream ifs(line);
|
IPipeStream ifs(line);
|
||||||
ParseConfigFile(ifs, config_file);
|
ParseConfigFile(ifs, config_file);
|
||||||
} else
|
} else {
|
||||||
*/{
|
|
||||||
if (microconfig_cat->is_spam())
|
if (microconfig_cat->is_spam())
|
||||||
microconfig_cat->spam()
|
microconfig_cat->spam()
|
||||||
<< "file is not executable, reading normally" << endl;
|
<< "file is not executable, reading normally" << endl;
|
||||||
|
@ -73,6 +73,7 @@ class EXPCL_DTOOL ConfigTable {
|
|||||||
SymEnt Get(const ConfigString& sym, const ConfigString qual = "");
|
SymEnt Get(const ConfigString& sym, const ConfigString qual = "");
|
||||||
const Symbol& GetSym(const ConfigString& sym,
|
const Symbol& GetSym(const ConfigString& sym,
|
||||||
const ConfigString qual = "");
|
const ConfigString qual = "");
|
||||||
|
INLINE ConfigString GetConfigPath(void) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "configTable.I"
|
#include "configTable.I"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user