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
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
21AssetScriptingInterface::AssetScriptingInterface(QScriptEngine* engine) :22AssetScriptingInterface::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)
92void AssetScriptingInterface::sendFakedHandshake() {
93 auto nodeList = DependencyManager::get<NodeList>();
94 SharedNodePointer assetServer = nodeList->soloNodeOfType(NodeType::AssetServer);
95
96 nodeList->sendFakedHandshakeRequestToNode(assetServer);
97}
98
99#endif