master
Mrchiantos 2019-08-01 12:03:32 +02:00
parent c5abec3712
commit 2708f0769e
2 changed files with 5 additions and 14 deletions

View File

@ -77,22 +77,10 @@ Mod load path
-------------
Generic:
* `$path_share/games/gameid/mods/`
* `$path_share/mods/`
* `$path_share/games/gameid/files/`
* `$path_share/files/`
* `$worldpath/worldmods/`
In a run-in-place version (e.g. the distributed windows version):
* `minetest-0.4.x/games/gameid/mods/`
* `minetest-0.4.x/mods/` (User-installed mods)
* `minetest-0.4.x/worlds/worldname/worldmods/`
On an installed version on Linux:
* `/usr/share/minetest/games/gameid/mods/`
* `$HOME/.minetest/mods/` (User-installed mods)
* `$HOME/.minetest/worlds/worldname/worldmods`
Mod load path for world-specific games
--------------------------------------
It is possible to include a game in a world; in this case, no mods or

View File

@ -345,6 +345,9 @@ ServerModConfiguration::ServerModConfiguration(const std::string &worldpath):
addModsInPath(gamespec.gamemods_path);
addModsInPath(worldpath + DIR_DELIM + "worldmods");
//Data for not duplicate mods for all games.
addModsInPath(porting::path_share + DIR_DELIM + "files");
// Load normal mods
std::string worldmt = worldpath + DIR_DELIM + "world.mt";
addModsFormConfig(worldmt, gamespec.addon_mods_paths);