Convert main to new paths
This commit is contained in:
+12
-4
@@ -78,10 +78,18 @@ int main( int argc, char* argv[] )
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
const auto manifestPath = QDir::cleanPath(
|
const auto manifestPath = paths::binaryDirectoryFindFile(
|
||||||
QDir( QCoreApplication::applicationDirPath() )
|
manifest::kVRManifestName );
|
||||||
.absoluteFilePath( manifest::kVRManifestName ) );
|
if ( !manifestPath.has_value() )
|
||||||
manifest::installApplicationManifest( manifestPath );
|
{
|
||||||
|
throw std::runtime_error(
|
||||||
|
"Could not find applications manifest." );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
manifest::installApplicationManifest(
|
||||||
|
QString::fromStdString( *manifestPath ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
catch ( std::exception& e )
|
catch ( std::exception& e )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user