Fixed: When migrating from client 2.1 to 3.0, client_default.cfg is deleted because it exists in several unfiltered BNP, see #279

--HG--
branch : develop
This commit is contained in:
kervala 2016-07-25 18:38:25 +02:00
parent de01e9e559
commit fffce0ca58

View file

@ -699,9 +699,6 @@ bool CConfigFile::isRyzomClientInstalledIn(const QString &directory) const
// directory doesn't exist // directory doesn't exist
if (!dir.exists()) return false; if (!dir.exists()) return false;
// client_default.cfg doesn't exist
if (!dir.exists("client_default.cfg")) return false;
// current server // current server
CServer server = getServer(); CServer server = getServer();
@ -714,9 +711,18 @@ bool CConfigFile::isRyzomClientInstalledIn(const QString &directory) const
// check if old client is defined and exists // check if old client is defined and exists
if (!dir.exists(clientFilename)) return false; if (!dir.exists(clientFilename)) return false;
}
// TODO: more checks // client 2.1-
}
else
{
// client 3.0+
// client_default.cfg doesn't exist
if (!dir.exists("client_default.cfg")) return false;
// TODO: more checks
}
return true; return true;
} }