1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-21 00:45:23 +01:00

Main menu: Fix mod detection within nested modpacks

* Re-use the C++ implementation of mod detection
* Correctly show up nested modpacks in the main menu
This commit is contained in:
SmallJoker
2025-10-29 22:56:30 +01:00
committed by sfan5
parent bf01cdf823
commit 392c054be9
9 changed files with 106 additions and 106 deletions

View File

@@ -342,6 +342,10 @@ Package - content which is downloadable from the content db, may or may not be i
optional_depends = {"mod", "names"}, -- mods only
}
```
* `core.get_mod_list(path, virtual_path)`
* Returns a flat list of mod and modpack information found within the specified path.
* Each entry consists of the fields `name`, `author`, `release`, `description`,
`path`, `virtual_path`, `is_name_explicit`, `is_modpack`, `modpack_depth`.
* `core.check_mod_configuration(world_path, mod_paths)`
* Checks whether configuration is valid.
* `world_path`: path to the world