feat(src/components/core/CoreManager): force zrtp, user certificate, root ca paths.

This commit is contained in:
Ronan Abhamon 2017-05-17 11:48:49 +02:00
parent 2fa536419f
commit ff1be58796

View file

@ -103,14 +103,10 @@ void CoreManager::setDatabasesPaths () {
}
void CoreManager::setOtherPaths () {
if (mCore->getZrtpSecretsFile().empty())
mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilePath());
if (mCore->getUserCertificatesPath().empty())
mCore->setUserCertificatesPath(Paths::getUserCertificatesDirPath());
if (mCore->getRootCa().empty())
mCore->setRootCa(Paths::getRootCaFilePath());
// Force paths. Ask me why if it's a problem for you.
mCore->setZrtpSecretsFile(Paths::getZrtpSecretsFilePath());
mCore->setUserCertificatesPath(Paths::getUserCertificatesDirPath());
mCore->setRootCa(Paths::getRootCaFilePath());
}
void CoreManager::setResourcesPaths () {