History

Merge branch 'fix/render_config' into android

Brad Davis committed 8 years ago

Commit 361b7672 parents 4d6538e ab4e2d960 files · +823 −459Browse files

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

Unified · Split

interface/src/Application.cpp+6−4
@@ -352,7 +352,7 @@ static const float MIRROR_FULLSCREEN_DISTANCE = 0.389f; · 351 unmodified lines
352352 static const quint64 TOO_LONG_SINCE_LAST_SEND_DOWNSTREAM_AUDIO_STATS = 1 * USECS_PER_SECOND;
353353
354354 static const QString INFO_EDIT_ENTITIES_PATH = "html/edit-commands.html";
355−static const QString INFO_HELP_PATH = "../../../html/tabletHelp.html";
355+static const QString INFO_HELP_PATH = "html/tabletHelp.html";
356356
357357 static const unsigned int THROTTLED_SIM_FRAMERATE = 15;
358358 static const int THROTTLED_SIM_FRAME_PERIOD_MS = MSECS_PER_SECOND / THROTTLED_SIM_FRAMERATE;
@@ -1441,8 +1441,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo · 1082 unmodified lines
14411441 userInputMapper->registerDevice(_touchscreenVirtualPadDevice->getInputDevice());
14421442 }
14431443
1444− // force the model the look at the correct directory (weird order of operations issue)
1445− scriptEngines->setScriptsLocation(scriptEngines->getScriptsLocation());
1444+ // this will force the model the look at the correct directory (weird order of operations issue)
1445+ scriptEngines->reloadLocalFiles();
1446+
14461447 // do this as late as possible so that all required subsystems are initialized
14471448 // If we've overridden the default scripts location, just load default scripts
14481449 // otherwise, load 'em all
@@ -2731,7 +2732,8 @@ void Application::showHelp() { · 1282 unmodified lines
27312732 queryString.addQueryItem("defaultTab", defaultTab);
27322733 auto tabletScriptingInterface = DependencyManager::get<TabletScriptingInterface>();
27332734 TabletProxy* tablet = dynamic_cast<TabletProxy*>(tabletScriptingInterface->getTablet(SYSTEM_TABLET));
2734− tablet->gotoWebScreen(INFO_HELP_PATH + "?" + queryString.toString());
2735+ tablet->gotoWebScreen(PathUtils::resourcesUrl() + INFO_HELP_PATH + "?" + queryString.toString());
2736+ DependencyManager::get<HMDScriptingInterface>()->openTablet();
27352737 //InfoView::show(INFO_HELP_PATH, false, queryString.toString());
27362738 }
27372739