Removed package emulation.
This commit is contained in:
parent
d929a1d290
commit
29d9afb566
2 changed files with 1 additions and 13 deletions
|
@ -1,16 +1,4 @@
|
|||
-- Ensure the package is shared between all its users.
|
||||
-- TODO: consider using the "package" module instead, if this code structure gets common.
|
||||
if wesnoth.package then
|
||||
local helper = wesnoth.package.helper
|
||||
if helper then
|
||||
return helper
|
||||
end
|
||||
else
|
||||
wesnoth.package = {}
|
||||
end
|
||||
|
||||
local helper = {}
|
||||
wesnoth.package.helper = helper
|
||||
|
||||
--! Interrupts the current execution and displays a chat message that looks like a WML error.
|
||||
function helper.wml_error(m)
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
local helper = wesnoth.dofile "lua/helper.lua"
|
||||
local helper = wesnoth.require "lua/helper.lua"
|
||||
|
||||
local function trim(s)
|
||||
local r = string.gsub(s, "^%s*(.-)%s*$", "%1")
|
||||
|
|
Loading…
Add table
Reference in a new issue