mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-05 22:26:25 +02:00
fixing scripts param/reverting some qml
This commit is contained in:
parent
57b21730de
commit
4daa943510
6 changed files with 19 additions and 5 deletions
|
@ -1,9 +1,8 @@
|
||||||
//
|
//
|
||||||
// LoginDialog.qml
|
// LoginDialog.qml
|
||||||
//
|
//
|
||||||
// Created by Wayne Chen
|
// Created by David Rowe on 3 Jun 2015
|
||||||
// Copyright 2018 High Fidelity, Inc.
|
// Copyright 2015 High Fidelity, Inc.
|
||||||
//
|
|
||||||
// Distributed under the Apache License, Version 2.0.
|
// Distributed under the Apache License, Version 2.0.
|
||||||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||||
//
|
//
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
//
|
//
|
||||||
// signUpBody.qml
|
// SignUpBody.qml
|
||||||
//
|
//
|
||||||
// Created by Stephen Birarda on 7 Dec 2016
|
// Created by Stephen Birarda on 7 Dec 2016
|
||||||
// Copyright 2016 High Fidelity, Inc.
|
// Copyright 2016 High Fidelity, Inc.
|
||||||
|
|
|
@ -56,7 +56,6 @@ Rectangle {
|
||||||
keyboardBase.height = raised ? raisedHeight : 0;
|
keyboardBase.height = raised ? raisedHeight : 0;
|
||||||
keyboardBase.visible = raised;
|
keyboardBase.visible = raised;
|
||||||
} else {
|
} else {
|
||||||
console.log("raising 3d keyboard to " + raised);
|
|
||||||
KeyboardScriptingInterface.raised = raised;
|
KeyboardScriptingInterface.raised = raised;
|
||||||
KeyboardScriptingInterface.password = raised ? password : false;
|
KeyboardScriptingInterface.password = raised ? password : false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1765,6 +1765,9 @@ Application::Application(int& argc, char** argv, QElapsedTimer& startupTimer, bo
|
||||||
userInputMapper->registerDevice(_touchscreenVirtualPadDevice->getInputDevice());
|
userInputMapper->registerDevice(_touchscreenVirtualPadDevice->getInputDevice());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QString scriptsSwitch = QString("--").append(SCRIPTS_SWITCH);
|
||||||
|
_defaultScriptsLocation = getCmdOption(argc, constArgv, scriptsSwitch.toStdString().c_str());
|
||||||
|
|
||||||
// Make sure we don't time out during slow operations at startup
|
// Make sure we don't time out during slow operations at startup
|
||||||
updateHeartbeat();
|
updateHeartbeat();
|
||||||
|
|
||||||
|
|
|
@ -98,6 +98,7 @@ static const UINT UWM_SHOW_APPLICATION =
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static const QString RUNNING_MARKER_FILENAME = "Interface.running";
|
static const QString RUNNING_MARKER_FILENAME = "Interface.running";
|
||||||
|
static const QString SCRIPTS_SWITCH = "scripts";
|
||||||
|
|
||||||
class Application;
|
class Application;
|
||||||
#if defined(qApp)
|
#if defined(qApp)
|
||||||
|
@ -664,6 +665,7 @@ private:
|
||||||
ControllerScriptingInterface* _controllerScriptingInterface{ nullptr };
|
ControllerScriptingInterface* _controllerScriptingInterface{ nullptr };
|
||||||
QPointer<LogDialog> _logDialog;
|
QPointer<LogDialog> _logDialog;
|
||||||
QPointer<EntityScriptServerLogDialog> _entityScriptServerLogDialog;
|
QPointer<EntityScriptServerLogDialog> _entityScriptServerLogDialog;
|
||||||
|
QDir _defaultScriptsLocation;
|
||||||
|
|
||||||
FileLogger* _logger;
|
FileLogger* _logger;
|
||||||
|
|
||||||
|
|
|
@ -72,6 +72,7 @@ int main(int argc, const char* argv[]) {
|
||||||
QCommandLineOption serverContentPathOption("serverContentPath", "Where to find server content", "serverContentPath");
|
QCommandLineOption serverContentPathOption("serverContentPath", "Where to find server content", "serverContentPath");
|
||||||
QCommandLineOption allowMultipleInstancesOption("allowMultipleInstances", "Allow multiple instances to run");
|
QCommandLineOption allowMultipleInstancesOption("allowMultipleInstances", "Allow multiple instances to run");
|
||||||
QCommandLineOption overrideAppLocalDataPathOption("cache", "set test cache <dir>", "dir");
|
QCommandLineOption overrideAppLocalDataPathOption("cache", "set test cache <dir>", "dir");
|
||||||
|
QCommandLineOption overrideScriptsPathOption(SCRIPTS_SWITCH, "set scripts <path>", "path");
|
||||||
|
|
||||||
parser.addOption(urlOption);
|
parser.addOption(urlOption);
|
||||||
parser.addOption(noUpdaterOption);
|
parser.addOption(noUpdaterOption);
|
||||||
|
@ -79,6 +80,7 @@ int main(int argc, const char* argv[]) {
|
||||||
parser.addOption(runServerOption);
|
parser.addOption(runServerOption);
|
||||||
parser.addOption(serverContentPathOption);
|
parser.addOption(serverContentPathOption);
|
||||||
parser.addOption(overrideAppLocalDataPathOption);
|
parser.addOption(overrideAppLocalDataPathOption);
|
||||||
|
parser.addOption(overrideScriptsPathOption);
|
||||||
parser.addOption(allowMultipleInstancesOption);
|
parser.addOption(allowMultipleInstancesOption);
|
||||||
|
|
||||||
if (!parser.parse(arguments)) {
|
if (!parser.parse(arguments)) {
|
||||||
|
@ -165,6 +167,15 @@ int main(int argc, const char* argv[]) {
|
||||||
if (allowMultipleInstances) {
|
if (allowMultipleInstances) {
|
||||||
instanceMightBeRunning = false;
|
instanceMightBeRunning = false;
|
||||||
}
|
}
|
||||||
|
// this needs to be done here in main, as the mechanism for setting the
|
||||||
|
// scripts directory appears not to work. See the bug report
|
||||||
|
// https://highfidelity.fogbugz.com/f/cases/5759/Issues-changing-scripts-directory-in-ScriptsEngine
|
||||||
|
if (parser.isSet(overrideScriptsPathOption)) {
|
||||||
|
QDir scriptsPath(parser.value(overrideScriptsPathOption));
|
||||||
|
if (scriptsPath.exists()) {
|
||||||
|
PathUtils::defaultScriptsLocation(scriptsPath.path());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (instanceMightBeRunning) {
|
if (instanceMightBeRunning) {
|
||||||
// Try to connect and send message to existing interface instance
|
// Try to connect and send message to existing interface instance
|
||||||
|
|
Loading…
Reference in a new issue