1
0
Fork 0
mirror of https://github.com/AquariaOSE/Aquaria.git synced 2025-02-18 02:34:57 +00:00
Aquaria/files/scripts/compat/forward-compatible.lua
fgenesis 3b759294df 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.
2017-01-21 02:06:44 +01:00

16 lines
446 B
Lua

-- Removes more functions than to no-deprecated
-- Some original game scripts will not work with this!
dofile("scripts/compat/no-deprecated.lua")
incrFlag = nil
decrFlag = nil
entity_sound = nil
entity_toggleBone = nil
isPlat = nil -- should not matter on the Lua side what the platform is
toggleVersionLabel = nil
setVersionLabelText = nil
quit = nil -- mods should not do this ever
doModSelect = nil
doLoadMenu = nil
appendUserDataPath = nil