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:
@@ -211,7 +211,7 @@ std::string findLocaleFileWithExtension(const std::string &path)
|
||||
/******************************************************************************/
|
||||
std::string findLocaleFileInMods(const std::string &path, const std::string &filename_no_ext)
|
||||
{
|
||||
std::vector<ModSpec> mods = flattenMods(getModsInPath(path, "root", true));
|
||||
std::vector<ModSpec> mods = flattenMods(getModsInPath(path, "root", 0));
|
||||
|
||||
for (const auto &mod : mods) {
|
||||
std::string ret = findLocaleFileWithExtension(
|
||||
|
||||
Reference in New Issue
Block a user