Created new .cpp and .h for the download and unzipping of a model
Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 4 files). Show all
Unified · Split
| @@ -49,6 +49,7 @@ · 48 unmodified lines | ||
| 49 | 49 | #include "BatchLoader.h" |
| 50 | 50 | #include "DataViewClass.h" |
| 51 | 51 | #include "EventTypes.h" |
| 52 | +#include "FileScriptingInterface.h" // unzip project | |
| 52 | 53 | #include "MenuItemProperties.h" |
| 53 | 54 | #include "ScriptAudioInjector.h" |
| 54 | 55 | #include "ScriptCache.h" |
| @@ -501,6 +502,10 @@ void ScriptEngine::init() { · 446 unmodified lines | ||
| 501 | 502 | registerGlobalObject("Mat4", &_mat4Library); |
| 502 | 503 | registerGlobalObject("Uuid", &_uuidLibrary); |
| 503 | 504 | registerGlobalObject("Messages", DependencyManager::get<MessagesClient>().data()); |
| 505 | + | |
| 506 | + // unzip project | |
| 507 | + registerGlobalObject("File", new FileScriptingInterface(this)); | |
| 508 | + | |
| 504 | 509 | qScriptRegisterMetaType(this, animVarMapToScriptValue, animVarMapFromScriptValue); |
| 505 | 510 | qScriptRegisterMetaType(this, resultHandlerToScriptValue, resultHandlerFromScriptValue); |
| 506 | 511 | |