mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-02-18 02:34:57 +00:00
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.
16 lines
446 B
Lua
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
|