From e464858c4c4034cd6f5f7f78df414e18d62443f1 Mon Sep 17 00:00:00 2001 From: Brad Hefta-Gaub Date: Wed, 26 Oct 2016 14:08:18 -0700 Subject: [PATCH] use SteamClient::isRunning() instead of command line param --- interface/src/main.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/interface/src/main.cpp b/interface/src/main.cpp index 78cec16237..ab4ab689f7 100644 --- a/interface/src/main.cpp +++ b/interface/src/main.cpp @@ -127,17 +127,13 @@ int main(int argc, const char* argv[]) { QCommandLineParser parser; QCommandLineOption runServerOption("runServer", "Whether to run the server"); QCommandLineOption serverContentPathOption("serverContentPath", "Where to find server content", "serverContentPath"); - QCommandLineOption launchedFromSteamOption("launchedFromSteam", "Whether we were launched from SteamVR."); parser.addOption(runServerOption); parser.addOption(serverContentPathOption); - parser.addOption(launchedFromSteamOption); parser.parse(arguments); bool runServer = parser.isSet(runServerOption); bool serverContentPathOptionIsSet = parser.isSet(serverContentPathOption); QString serverContentPathOptionValue = serverContentPathOptionIsSet ? parser.value(serverContentPathOption) : QString(); - bool launchedFromSteam = parser.isSet(launchedFromSteamOption); - QElapsedTimer startupTime; startupTime.start(); @@ -165,6 +161,7 @@ int main(int argc, const char* argv[]) { QSettings::setDefaultFormat(QSettings::IniFormat); Application app(argc, const_cast(argv), startupTime, runServer, serverContentPathOptionValue); + bool launchedFromSteam = SteamClient::isRunning(); app.setProperty("com.highfidelity.launchedFromSteam", launchedFromSteam); // If we failed the OpenGLVersion check, log it.