Changed: #1051 Check for client.cfg in Ryzom application directory

This commit is contained in:
kervala 2010-10-19 21:12:34 +02:00
parent e615d14665
commit 98a4db7da2

View file

@ -160,6 +160,10 @@ int main(int argc, char *argv[])
std::string config = "client.cfg";
// if client.cfg is not in current directory, use client.cfg from user directory
if (!CFile::isExists(config))
config = CPath::getApplicationDirectory("Ryzom") + config;
// if client.cfg is not in current directory, use client_default.cfg
if (!CFile::isExists(config))
config = "client_default.cfg";