MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / getCurrentConfigFileName

Function getCurrentConfigFileName

src/clientbase/clientConfig.cpp:82–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82std::string getCurrentConfigFileName(void) {
83 std::string configFile = BZ_CONFIG_FILE_NAME;
84
85 std::string name = getConfigDirName(BZ_CONFIG_DIR_VERSION);
86 name += configFile;
87
88#if !defined(_WIN32)
89 // add in hostname on UNIX
90 if (getenv("HOST")) {
91 name += ".";
92 name += getenv("HOST");
93 }
94#endif
95 return name;
96}
97
98// this function will look for the config, if it's not there,
99// it will TRY and find an old one and copy it

Callers 7

findConfigFileFunction · 0.85
executeMethod · 0.85
executeMethod · 0.85
parseConfigNameFunction · 0.85
setupConfigsFunction · 0.85
saveSettingsFunction · 0.85
setupConfigsFunction · 0.85

Calls 1

getConfigDirNameFunction · 0.85

Tested by

no test coverage detected