jcronenberg / DreamDeck

Versatile Macroboard for Touchscreens
MIT License
7 stars 0 forks source link

Basic plugin loading at runtime #34

Closed jcronenberg closed 9 months ago

jcronenberg commented 9 months ago

Includes a small migration from dir plugins -> plugin_configs, because plugins is now used for the loading of plugin archives.

Also for future reference plugins should be created manually because godot currently has no export without dependencies option, so a lot of files that would overwrite other files get included. Maybe we could call load_resource_pack() without overwriting. An archive can be created e.g. like this for the touch plugin:

zip -r touch.zip plugins/touch/ --exclude 'plugins/touch/rust/*'
zip -ur touch.zip plugins/touch/rust/dreamdeck_touch.gdextension plugins/touch/rust/target/release/libdreamdeck_touch.so

Shared libaries need to be included.