Browse Source

test

master
Mrchiantos 2 weeks ago
parent
commit
2708f0769e
2 changed files with 5 additions and 14 deletions
  1. 2
    14
      doc/lua_api.txt
  2. 3
    0
      src/mods.cpp

+ 2
- 14
doc/lua_api.txt 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

+ 3
- 0
src/mods.cpp 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);

Loading…
Cancel
Save