-
Notifications
You must be signed in to change notification settings - Fork 0
/
loader.cfg
52 lines (41 loc) · 971 Bytes
/
loader.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#textdomain wesnoth-Wexlfu-7.2.0
{./version.cfg}
# Wesnoth EXtension Library For Utility
# Also includes extensions to core as appropriate to implement the "Wexlfu" shared history.
# Expected config:
# WXFU_CONFIG_BINARY_PATH, WXFU_CONFIG_PREFIX
[binary_path]
path={WXFU_CONFIG_BINARY_PATH}/
[/binary_path]
# Create wexlfu table.
[lua]
code = <<
wexlfu = {
config = {},
}
>>
[/lua]
# Set path variables, expanded from WML macros.
[lua]
code = "
wexlfu.config.version = '{WXFU}'
wexlfu.config.textdomain = 'wesnoth-Wexlfu-{WXFU}'
wexlfu.config.prefix = '{WXFU_CONFIG_PREFIX}'
wexlfu.config.binary_path = '{WXFU_CONFIG_BINARY_PATH}'
"
[/lua]
[lua]
code = <<
wexlfu.math = wesnoth.require(wexlfu.config.prefix .. "/lua/math.lua")
wexlfu.map = wesnoth.require(wexlfu.config.prefix .. "/lua/map.lua")
>>
[/lua]
#define WXFU_LOAD path
{{WXFU_CONFIG_PREFIX}/{path}}
#enddef
{./strings}
{./macros}
{./characters}
[units]
{./units}
[/units]