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 | 17 | #include <AssetUpload.h> |
| 18 | 18 | #include <MappingRequest.h> |
| 19 | 19 | #include <NetworkLogging.h> |
| 20 | +#include <NodeList.h> | |
| 20 | 21 | |
| 21 | 22 | AssetScriptingInterface::AssetScriptingInterface(QScriptEngine* engine) : |
| 22 | 23 | _engine(engine) |
| @@ -86,3 +87,13 @@ void AssetScriptingInterface::downloadData(QString urlString, QScriptValue callb · 63 unmodified lines | ||
| 86 | 87 | |
| 87 | 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 | |