Plugins in LOVE
Posted: Tue Nov 20, 2012 9:23 pm
Hi.
I'm toying with a simple plugin system using ZIP files as plugins.
Here's how it works:
The way I've solved the plugin problem is, therefore, not entirely satisfactory. Do any of you lovers out there know of any way it could be implemented more cleanly? Perhaps you've encountered a better system -- or even wrote one yourself!
I'm toying with a simple plugin system using ZIP files as plugins.
Here's how it works:
- Game assets are stored in ZIP files and put in a designated plugin folder.
- At startup, the game reads the plugin load order from a configuration file.
- Each plugin in the load order is prepended to the PHYSFS search path.
The way I've solved the plugin problem is, therefore, not entirely satisfactory. Do any of you lovers out there know of any way it could be implemented more cleanly? Perhaps you've encountered a better system -- or even wrote one yourself!