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 | 37 | #include <EntityScriptingInterface.h> |
| 38 | 38 | #include <MessagesClient.h> |
| 39 | 39 | #include <NetworkAccessManager.h> |
| 40 | +#include <PathUtils.h> | |
| 40 | 41 | #include <ResourceScriptingInterface.h> |
| 41 | 42 | #include <NodeList.h> |
| 42 | 43 | #include <udt/PacketHeaders.h> |
| @@ -1136,6 +1137,10 @@ QUrl ScriptEngine::resolvePath(const QString& include) const { · 1093 unmodified lines | ||
| 1136 | 1137 | return url; |
| 1137 | 1138 | } |
| 1138 | 1139 | |
| 1140 | +QUrl ScriptEngine::resourcesPath() const { | |
| 1141 | + return QUrl::fromLocalFile(PathUtils::resourcesPath()); | |
| 1142 | +} | |
| 1143 | + | |
| 1139 | 1144 | void ScriptEngine::print(const QString& message) { |
| 1140 | 1145 | emit printedMessage(message); |
| 1141 | 1146 | } |