History

Merge branch 'master' into menu-updates

vladest committed 8 years ago

Commit bb7eb902 parents c402cb2 4c0a0a850 files · +1354 −368Browse files

Showing the changes to interface/src/Application.cpp (1 of 50 files). Show all

Unified · Split

interface/src/Application.cpp+5−9
@@ -490,7 +490,7 @@ public: · 489 unmodified lines
490490 // Don't actually crash in debug builds, in case this apparent deadlock is simply from
491491 // the developer actively debugging code
492492 #ifdef NDEBUG
493− deadlockDetectionCrash();
493+ deadlockDetectionCrash();
494494 #endif
495495 }
496496 }
@@ -773,7 +773,6 @@ bool setupEssentials(int& argc, char** argv, bool runningMarkerExisted) { · 276 unmodified lines
773773 steamClient->init();
774774 }
775775
776− DependencyManager::set<tracing::Tracer>();
777776 PROFILE_SET_THREAD_NAME("Main Thread");
778777
779778 #if defined(Q_OS_WIN)
@@ -958,10 +957,8 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 178 unmodified lines
958957 auto steamClient = PluginManager::getInstance()->getSteamClientPlugin();
959958 setProperty(hifi::properties::STEAM, (steamClient && steamClient->isRunning()));
960959 setProperty(hifi::properties::CRASHED, _previousSessionCrashed);
961−
962960 {
963961 const QString TEST_SCRIPT = "--testScript";
964− const QString TRACE_FILE = "--traceFile";
965962 const QStringList args = arguments();
966963 for (int i = 0; i < args.size() - 1; ++i) {
967964 if (args.at(i) == TEST_SCRIPT) {
@@ -969,10 +966,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1 unmodified line
969966 if (QFileInfo(testScriptPath).exists()) {
970967 setProperty(hifi::properties::TEST, QUrl::fromLocalFile(testScriptPath));
971968 }
972− } else if (args.at(i) == TRACE_FILE) {
973− QString traceFilePath = args.at(i + 1);
974− setProperty(hifi::properties::TRACING, traceFilePath);
975− DependencyManager::get<tracing::Tracer>()->startTracing();
976969 }
977970 }
978971 }
@@ -1018,6 +1011,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 39 unmodified lines
10181011 auto nodeList = DependencyManager::get<NodeList>();
10191012 nodeList->startThread();
10201013
1014+ const char** constArgv = const_cast<const char**>(argv);
1015+ if (cmdOptionExists(argc, constArgv, "--disableWatchdog")) {
1016+ DISABLE_WATCHDOG = true;
1017+ }
10211018 // Set up a watchdog thread to intentionally crash the application on deadlocks
10221019 if (!DISABLE_WATCHDOG) {
10231020 (new DeadlockWatchdogThread())->start();
@@ -1227,7 +1224,6 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 203 unmodified lines
12271224 connect(&_entityEditSender, &EntityEditPacketSender::packetSent, this, &Application::packetSent);
12281225 connect(&_entityEditSender, &EntityEditPacketSender::addingEntityWithCertificate, this, &Application::addingEntityWithCertificate);
12291226
1230− const char** constArgv = const_cast<const char**>(argv);
12311227 QString concurrentDownloadsStr = getCmdOption(argc, constArgv, "--concurrent-downloads");
12321228 bool success;
12331229 int concurrentDownloads = concurrentDownloadsStr.toInt(&success);