History

CR feedback

Brad Hefta-Gaub committed 10 years ago

Commit d5c87a01 parent d46170b4 files · +21 −18Browse files

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

Unified · Split

interface/src/Application.cpp+15−15
@@ -579,15 +579,15 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 578 unmodified lines
579579
580580
581581 bool wantsSandboxRunning = shouldRunServer();
582− bool determinedSandboxState = false;
583− bool sandboxRunning = false;
582+ static bool determinedSandboxState = false;
583+ static bool sandboxRunning = false;
584584 SandboxUtils sandboxUtils;
585585 sandboxUtils.ifLocalSandboxRunningElse([&]() {
586− qDebug() << "Home sandbox appears to be running.....";
586+ qCDebug(interfaceapp) << "Home sandbox appears to be running.....";
587587 determinedSandboxState = true;
588588 sandboxRunning = true;
589589 }, [&]() {
590− qDebug() << "Home sandbox does not appear to be running....";
590+ qCDebug(interfaceapp) << "Home sandbox does not appear to be running....";
591591 determinedSandboxState = true;
592592 sandboxRunning = false;
593593 if (wantsSandboxRunning) {
@@ -1292,7 +1292,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 698 unmodified lines
12921292 // Get sandbox content set version, if available
12931293 auto acDirPath = PathUtils::getRootDataDirectory() + BuildInfo::MODIFIED_ORGANIZATION + "/assignment-client/";
12941294 auto contentVersionPath = acDirPath + "content-version.txt";
1295− qDebug() << "Checking " << contentVersionPath << " for content version";
1295+ qCDebug(interfaceapp) << "Checking " << contentVersionPath << " for content version";
12961296 auto contentVersion = 0;
12971297 QFile contentVersionFile(contentVersionPath);
12981298 if (contentVersionFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
@@ -1300,7 +1300,7 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1 unmodified line
13001300 // toInt() returns 0 if the conversion fails, so we don't need to specifically check for failure
13011301 contentVersion = line.toInt();
13021302 }
1303− qDebug() << "Server content version: " << contentVersion;
1303+ qCDebug(interfaceapp) << "Server content version: " << contentVersion;
13041304
13051305 bool hasTutorialContent = contentVersion >= 1;
13061306
@@ -1310,10 +1310,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 3 unmodified lines
13101310
13111311 bool shouldGoToTutorial = hasHMDAndHandControllers && hasTutorialContent && !tutorialComplete.get();
13121312
1313− qDebug() << "Has HMD + Hand Controllers: " << hasHMDAndHandControllers << ", current plugin: " << _displayPlugin->getName();
1314− qDebug() << "Has tutorial content: " << hasTutorialContent;
1315− qDebug() << "Tutorial complete: " << tutorialComplete.get();
1316− qDebug() << "Should go to tutorial: " << shouldGoToTutorial;
1313+ qCDebug(interfaceapp) << "Has HMD + Hand Controllers: " << hasHMDAndHandControllers << ", current plugin: " << _displayPlugin->getName();
1314+ qCDebug(interfaceapp) << "Has tutorial content: " << hasTutorialContent;
1315+ qCDebug(interfaceapp) << "Tutorial complete: " << tutorialComplete.get();
1316+ qCDebug(interfaceapp) << "Should go to tutorial: " << shouldGoToTutorial;
13171317
13181318 // when --url in command line, teleport to location
13191319 const QString HIFI_URL_COMMAND_LINE_KEY = "--url";
@@ -1327,10 +1327,10 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 7 unmodified lines
13271327
13281328 if (shouldGoToTutorial) {
13291329 sandboxUtils.ifLocalSandboxRunningElse([=]() {
1330− qDebug() << "Home sandbox appears to be running, going to Home.";
1330+ qCDebug(interfaceapp) << "Home sandbox appears to be running, going to Home.";
13311331 DependencyManager::get<AddressManager>()->goToLocalSandbox(TUTORIAL_PATH);
13321332 }, [=]() {
1333− qDebug() << "Home sandbox does not appear to be running, going to Entry.";
1333+ qCDebug(interfaceapp) << "Home sandbox does not appear to be running, going to Entry.";
13341334 if (firstRun.get()) {
13351335 showHelp();
13361336 }
@@ -1352,17 +1352,17 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 15 unmodified lines
13521352 if (isFirstRun) {
13531353 if (hasHMDAndHandControllers) {
13541354 sandboxUtils.ifLocalSandboxRunningElse([=]() {
1355− qDebug() << "Home sandbox appears to be running, going to Home.";
1355+ qCDebug(interfaceapp) << "Home sandbox appears to be running, going to Home.";
13561356 DependencyManager::get<AddressManager>()->goToLocalSandbox();
13571357 }, [=]() {
1358− qDebug() << "Home sandbox does not appear to be running, going to Entry.";
1358+ qCDebug(interfaceapp) << "Home sandbox does not appear to be running, going to Entry.";
13591359 DependencyManager::get<AddressManager>()->goToEntry();
13601360 });
13611361 } else {
13621362 DependencyManager::get<AddressManager>()->goToEntry();
13631363 }
13641364 } else {
1365− qDebug() << "Not first run... going to" << qPrintable(addressLookupString.isEmpty() ? QString("previous location") : addressLookupString);
1365+ qCDebug(interfaceapp) << "Not first run... going to" << qPrintable(addressLookupString.isEmpty() ? QString("previous location") : addressLookupString);
13661366 DependencyManager::get<AddressManager>()->loadSettings(addressLookupString);
13671367 }
13681368 }