Browse Source

Reload script on initialize.

tags/v1.1.1
Andrew Belt 5 years ago
parent
commit
ee892a3d81
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/Prototype.cpp

+ 4
- 0
src/Prototype.cpp View File

@@ -57,6 +57,10 @@ struct Prototype : Module {
clearScriptEngine();
}

void onReset() override {
reloadScript();
}

void process(const ProcessArgs& args) override {
if (!scriptEngine)
return;


Loading…
Cancel
Save