Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 21 files). Show all
Unified · Split
| @@ -37,6 +37,7 @@ · 36 unmodified lines | |||
| 37 | #include <EntityScriptingInterface.h> | 37 | #include <EntityScriptingInterface.h> |
| 38 | #include <MessagesClient.h> | 38 | #include <MessagesClient.h> |
| 39 | #include <NetworkAccessManager.h> | 39 | #include <NetworkAccessManager.h> |
| 40 | #include <PathUtils.h> | ||
| 40 | #include <ResourceScriptingInterface.h> | 41 | #include <ResourceScriptingInterface.h> |
| 41 | #include <NodeList.h> | 42 | #include <NodeList.h> |
| 42 | #include <udt/PacketHeaders.h> | 43 | #include <udt/PacketHeaders.h> |
| @@ -1136,6 +1137,10 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 1093 unmodified lines | |||
| 1136 | return url; | 1137 | return url; |
| 1137 | } | 1138 | } |
| 1138 | 1139 | ||
| 1140 | QUrl ScriptEngine::resourcesPath() const { | ||
| 1141 | return QUrl::fromLocalFile(PathUtils::resourcesPath()); | ||
| 1142 | } | ||
| 1143 | |||
| 1139 | void ScriptEngine::print(const QString& message) { | 1144 | void ScriptEngine::print(const QString& message) { |
| 1140 | emit printedMessage(message); | 1145 | emit printedMessage(message); |
| 1141 | } | 1146 | } |