Provide support for requiring c libraries in scripts #4123
Labels
feature
Feature request, or something should be improved
low priority
scripting
Related to scripting API
Currently, loading C or C++ shared libraries in scripts is not fully supported in Aseprite. It is possible to load these types of libraries on Windows if you fiddle with the package.cpath and package.searchers values, or load them directly using package.loadlib, however it would be ideal to fully support loading shared libraries out of the box. Additionally, it is impossible to load shared libraries on Linux or MacOS, as lua is not linked against 'dl' on these platforms.
Supporting loading shared libraries would enable development of more advanced scripts, as it would allow them to make use of features lua does not support (ex. multi threading), or allow usage of popular lua packages, which require shared libraries to function (ex. LuaSocket).
I would be able to open a PR of a possible implementation, if this feature is something you would like to see in Aseprite.
The text was updated successfully, but these errors were encountered: