saveProjectSb3 should tell the GUI whether this project uses any TW-exclusive blocks

This commit is contained in:
Thomas Weber committed 2020-12-24 18:28:27 -06:00
1 parent 9f557dfb94
commit dc9ffb0d74
1 file changed
+4
+4
View File
@@ -444,6 +444,10 @@ class VirtualMachine extends EventEmitter {
compressionOptions: {
level: 6 // Tradeoff between best speed (1) and best compression (9)
}
}).then(result => {
// tw: We want to let the GUI know whether this project uses block that won't work in Scratch.
result.usesExtendedExtensions = JSON.parse(projectJson).extensions.includes('tw');
return result;
});
}