Showing the changes to libraries/script-engine/src/AssetScriptingInterface.cpp (1 of 7 files). Show all
Unified · Split
| @@ -17,6 +17,7 @@ · 16 unmodified lines | |||
| 17 | #include <AssetUpload.h> | 17 | #include <AssetUpload.h> |
| 18 | #include <MappingRequest.h> | 18 | #include <MappingRequest.h> |
| 19 | #include <NetworkLogging.h> | 19 | #include <NetworkLogging.h> |
| 20 | #include <NodeList.h> | ||
| 20 | 21 | ||
| 21 | AssetScriptingInterface::AssetScriptingInterface(QScriptEngine* engine) : | 22 | AssetScriptingInterface::AssetScriptingInterface(QScriptEngine* engine) : |
| 22 | _engine(engine) | 23 | _engine(engine) |
| @@ -86,3 +87,13 @@ void AssetScriptingInterface::downloadData(QString urlString, QScriptValue callb · 63 unmodified lines | |||
| 86 | 87 | ||
| 87 | assetRequest->start(); | 88 | assetRequest->start(); |
| 88 | } | 89 | } |
| 90 | |||
| 91 | #if (PR_BUILD || DEV_BUILD) | ||
| 92 | void AssetScriptingInterface::sendFakedHandshake() { | ||
| 93 | auto nodeList = DependencyManager::get<NodeList>(); | ||
| 94 | SharedNodePointer assetServer = nodeList->soloNodeOfType(NodeType::AssetServer); | ||
| 95 | |||
| 96 | nodeList->sendFakedHandshakeRequestToNode(assetServer); | ||
| 97 | } | ||
| 98 | |||
| 99 | #endif | ||