1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-07-16 04:45:06 +00:00

Add support for mod script compatibility layers

This uses a new <Compatibility script="..." /> tag in a mod's XML file.
A compatbility layer is a script that runs before mod-init.lua is loaded,
and before any mod scripts are loaded when resuming a saved game.

This is a better solution than shipping a fragile wrapper
with every mod, that tends to break and then needs to be updated.
Now this wrapper is centralized, easy to use, and easy to update.

Closes #31.
This commit is contained in:
fgenesis 2017-01-21 02:06:44 +01:00
parent 8411838636
commit 3b759294df
11 changed files with 419 additions and 19 deletions

View file

@ -0,0 +1,5 @@
-- 1.1.3+ compatibility wrapper
-- allows to run scripts written for the old script interface.
dofile("scripts/compat/internal/loader.lua")
dofile("scripts/compat/internal/old_1.1.lua")