mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-10 17:29:06 +00:00
Fixed: Use full path for client_default.cfg
This commit is contained in:
parent
04554fddab
commit
d4dbbe8375
1 changed files with 4 additions and 2 deletions
|
@ -2222,9 +2222,11 @@ bool CClientConfig::getDefaultConfigLocation(std::string& p_name) const
|
||||||
defaultConfigPath = Args.getProgramPath();
|
defaultConfigPath = Args.getProgramPath();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
std::string currentPath = CPath::standardizePath(CPath::getCurrentPath());
|
||||||
|
|
||||||
// look in the current working directory first
|
// look in the current working directory first
|
||||||
if (CFile::isExists(defaultConfigFileName))
|
if (CFile::isExists(currentPath + defaultConfigFileName))
|
||||||
p_name = defaultConfigFileName;
|
p_name = currentPath + defaultConfigFileName;
|
||||||
|
|
||||||
// look in startup directory
|
// look in startup directory
|
||||||
else if (CFile::isExists(Args.getStartupPath() + defaultConfigFileName))
|
else if (CFile::isExists(Args.getStartupPath() + defaultConfigFileName))
|
||||||
|
|
Loading…
Reference in a new issue