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:
parent
6074163bf3
commit
45fcc9de29
6 changed files with 19 additions and 56 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue