TurboWarp / scratch-vm

Scratch VM with a JIT compiler and more features
https://turbowarp.org/
Mozilla Public License 2.0
75 stars 72 forks source link

Prepare project's JSON for extension #172

Closed 0832k12 closed 9 months ago

0832k12 commented 11 months ago

Proposed Changes

Changed the deserializeProject method in virtual-machine.js to allow extensions to read the project's JSON when loaded with the project.

Reason for Changes

Used to obtain the complete project JSON when the extension is loaded for use by the extension and expand the functionality of the extension.

Test Coverage

image

yuri-kiss commented 9 months ago

i just noticed, this runs before serialization, does that mean we can use it for storage in the project?

GarboMuffin commented 9 months ago

if this was for storage then it was superseded by https://github.com/TurboWarp/scratch-vm/pull/179