| 51 | } |
| 52 | |
| 53 | ScriptLoader::~ScriptLoader() |
| 54 | { |
| 55 | for (auto ctx : _contextPool) { |
| 56 | ctx->Release(); |
| 57 | } |
| 58 | |
| 59 | if (_engine != nullptr) { |
| 60 | _engine->ShutDownAndRelease(); |
| 61 | _engine = nullptr; |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | ScriptContextType ScriptLoader::AddScriptFromFile(StringView path, const HashMap<String, bool>& definedSymbols) |
| 66 | { |