History

make faked handshake request usable in dev/PR

Stephen Birarda committed 10 years ago

Commit b81eaa61 parent ea2da347 files · +26 −20Browse files

Showing the changes to libraries/script-engine/src/AssetScriptingInterface.cpp (1 of 7 files). Show all

Unified · Split

libraries/script-engine/src/AssetScriptingInterface.cpp+11−0
@@ -17,6 +17,7 @@ · 16 unmodified lines
1717 #include <AssetUpload.h>
1818 #include <MappingRequest.h>
1919 #include <NetworkLogging.h>
20+#include <NodeList.h>
2021
2122 AssetScriptingInterface::AssetScriptingInterface(QScriptEngine* engine) :
2223 _engine(engine)
@@ -86,3 +87,13 @@ void AssetScriptingInterface::downloadData(QString urlString, QScriptValue callb · 63 unmodified lines
8687
8788 assetRequest->start();
8889 }
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