mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2024-11-29 03:33:48 +00:00
3b759294df
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.
5 lines
187 B
Lua
5 lines
187 B
Lua
-- 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")
|