From c14867ad41aa8ad26424042d375b75f35def9b72 Mon Sep 17 00:00:00 2001 From: matzman666 Date: Mon, 5 Dec 2016 00:56:34 +0100 Subject: [PATCH] Added -nomanifest command line argument that disables vrmanifest registration. --- src/main.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 787254f..4eb0778 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -59,6 +59,7 @@ int main(int argc, char *argv[]) { bool desktopMode = false; bool noSound = false; + bool noManifest = false; // Parse command line arguments for (int i = 1; i < argc; i++) { @@ -66,7 +67,11 @@ int main(int argc, char *argv[]) { LOG(INFO) << "Desktop mode enabled."; desktopMode = true; } else if (std::string(argv[i]).compare("-nosound") == 0) { + LOG(INFO) << "Sound effects disabled."; noSound = true; + } else if (std::string(argv[i]).compare("-nomanifest") == 0) { + LOG(INFO) << "vrmanifest disabled."; + noManifest = true; } } @@ -92,7 +97,7 @@ int main(int argc, char *argv[]) { auto quickObj = component.create(); controller->SetWidget(qobject_cast(quickObj), advsettings::OverlayController::applicationName, advsettings::OverlayController::applicationKey); - if (!desktopMode) { + if (!desktopMode && !noManifest) { std::string manifestPath = QApplication::applicationDirPath().toStdString() + "\\advancedsettings.vrmanifest"; if (QFile::exists(QString::fromStdString(manifestPath))) { bool firstTime = false;