aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-19 08:34:38 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-19 08:34:38 +0200
commit1ff20da5b689d1a5e5a89f7ca086d88bc47f837d (patch)
tree117e69911b74084af2445dc91486f43030c86cc5 /src
parent5ef78cd81504261a1195fe72a93db18a71ad12a7 (diff)
downloadminetest-1ff20da5b689d1a5e5a89f7ca086d88bc47f837d.tar.gz
minetest-1ff20da5b689d1a5e5a89f7ca086d88bc47f837d.tar.bz2
minetest-1ff20da5b689d1a5e5a89f7ca086d88bc47f837d.zip
Add the mod search path user/mods/gameid
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server.cpp b/src/server.cpp
index f3bf1e23f..df9a4d390 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -904,6 +904,9 @@ Server::Server(
for(std::set<std::string>::const_iterator i = m_gamespec.addon_paths.begin();
i != m_gamespec.addon_paths.end(); i++)
m_modspaths.push_front((*i) + DIR_DELIM + "mods");
+ // Add simple user mod search path
+ m_modspaths.push_front(porting::path_user + DIR_DELIM + "mods"
+ + DIR_DELIM + m_gamespec.id);
// Print out mod search paths
for(core::list<std::string>::Iterator i = m_modspaths.begin();