Call vm.convertToPackagedRuntime if it exists
In the future, the VM may use this to apply certain optimizations that it can't normally apply due to the editor
This commit is contained in:
1 parent
239010c7f5
commit
8bb2620320
1 file changed
+3
@@ -313,6 +313,9 @@ class Scaffolding extends EventTarget {
|
||||
this.vm.on('PROJECT_RUN_STOP', () => this.dispatchEvent(new Event('PROJECT_RUN_STOP')));
|
||||
|
||||
// TurboWarp-specific VM extensions
|
||||
if (this.vm.convertToPackagedRuntime) {
|
||||
this.vm.convertToPackagedRuntime();
|
||||
}
|
||||
if (this.vm.setStageSize) {
|
||||
this.vm.setStageSize(this.width, this.height);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user