Added -nomanifest command line argument that disables vrmanifest

registration.
This commit is contained in:
2016-12-05 00:56:34 +01:00
parent 72ce9f5a6d
commit c14867ad41
+6 -1
View File
@@ -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<QQuickItem*>(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;