1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-17 10:25:21 +02: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:
sfence
2024-06-01 16:36:20 +02:00
committed by GitHub
parent a4768d1638
commit 140b9e5a5a
12 changed files with 141 additions and 64 deletions

View File

@@ -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

View File

@@ -0,0 +1 @@
-- Nothing to do here, loading order is tested in C++ unittests.

View File

@@ -0,0 +1,2 @@
name = first_mod
description = Mod which should be loaded before every other mod.

View File

@@ -0,0 +1 @@
-- Nothing to do here, loading order is tested in C++ unittests.

View 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

View File

@@ -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