mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Fixed: When migrating from client 2.1 to 3.0, client_default.cfg is deleted because it exists in several unfiltered BNP, see #279
This commit is contained in:
parent
9eb6c89733
commit
190f72d95f
1 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||||
|
|
||||||
|
// client 2.1-
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// client 3.0+
|
||||||
|
|
||||||
|
// client_default.cfg doesn't exist
|
||||||
|
if (!dir.exists("client_default.cfg")) return false;
|
||||||
|
|
||||||
// TODO: more checks
|
// TODO: more checks
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue