mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
New modsystem
Mods are placed in $path_<user/share>/mods They can be enabled per world in world.mt or the configure world window
This commit is contained in:
@@ -91,9 +91,9 @@ SubgameSpec findSubgame(const std::string &id)
|
||||
// Find mod directories
|
||||
std::set<std::string> mods_paths;
|
||||
if(!user_game)
|
||||
mods_paths.insert(share + DIR_DELIM + "mods" + DIR_DELIM + id);
|
||||
mods_paths.insert(share + DIR_DELIM + "mods");
|
||||
if(user != share || user_game)
|
||||
mods_paths.insert(user + DIR_DELIM + "mods" + DIR_DELIM + id);
|
||||
mods_paths.insert(user + DIR_DELIM + "mods");
|
||||
std::string game_name = getGameName(game_path);
|
||||
if(game_name == "")
|
||||
game_name = id;
|
||||
|
Reference in New Issue
Block a user