Convert main to new paths

This commit is contained in:
Vasily
2019-03-19 16:10:35 +01:00
committed by username223
parent e1866e635f
commit 6c0ae194a5
+12 -4
View File
@@ -78,10 +78,18 @@ int main( int argc, char* argv[] )
{
try
{
const auto manifestPath = QDir::cleanPath(
QDir( QCoreApplication::applicationDirPath() )
.absoluteFilePath( manifest::kVRManifestName ) );
manifest::installApplicationManifest( manifestPath );
const auto manifestPath = paths::binaryDirectoryFindFile(
manifest::kVRManifestName );
if ( !manifestPath.has_value() )
{
throw std::runtime_error(
"Could not find applications manifest." );
}
else
{
manifest::installApplicationManifest(
QString::fromStdString( *manifestPath ) );
}
}
catch ( std::exception& e )
{