1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00: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:
PilzAdam 2013-05-18 17:00:47 +02:00
parent 6074163bf3
commit 45fcc9de29
6 changed files with 19 additions and 56 deletions

View file

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