mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Allow game to specify first and last mod in mod loading order (#14177)
Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de>
This commit is contained in:
parent
a4768d1638
commit
140b9e5a5a
12 changed files with 141 additions and 64 deletions
|
@ -1,2 +1,4 @@
|
|||
title = Development Test
|
||||
description = Testing environment to help with testing the engine features of Minetest. It can also be helpful in mod development.
|
||||
first_mod = first_mod
|
||||
last_mod = last_mod
|
||||
|
|
1
games/devtest/mods/first_mod/init.lua
Normal file
1
games/devtest/mods/first_mod/init.lua
Normal file
|
@ -0,0 +1 @@
|
|||
-- Nothing to do here, loading order is tested in C++ unittests.
|
2
games/devtest/mods/first_mod/mod.conf
Normal file
2
games/devtest/mods/first_mod/mod.conf
Normal file
|
@ -0,0 +1,2 @@
|
|||
name = first_mod
|
||||
description = Mod which should be loaded before every other mod.
|
1
games/devtest/mods/last_mod/init.lua
Normal file
1
games/devtest/mods/last_mod/init.lua
Normal file
|
@ -0,0 +1 @@
|
|||
-- Nothing to do here, loading order is tested in C++ unittests.
|
5
games/devtest/mods/last_mod/mod.conf
Normal file
5
games/devtest/mods/last_mod/mod.conf
Normal file
|
@ -0,0 +1,5 @@
|
|||
name = last_mod
|
||||
description = Mod which should be loaded as last mod.
|
||||
# Test dependencies
|
||||
optional_depends = unittests
|
||||
depends = first_mod
|
|
@ -1,3 +1,4 @@
|
|||
name = unittests
|
||||
description = Adds automated unit tests for the engine
|
||||
depends = basenodes
|
||||
# Also test that it is possible to depend on first_mod
|
||||
depends = first_mod, basenodes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue