From: Perttu Ahola Date: Mon, 19 Mar 2012 06:34:38 +0000 (+0200) Subject: Add the mod search path user/mods/gameid X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=1ff20da5b689d1a5e5a89f7ca086d88bc47f837d;p=zefram%2Fminetest%2Fminetest_engine.git Add the mod search path user/mods/gameid --- diff --git a/src/server.cpp b/src/server.cpp index f3bf1e23..df9a4d39 100644 --- a/src/server.cpp +++ b/src/server.cpp @@ -904,6 +904,9 @@ Server::Server( for(std::set::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::Iterator i = m_modspaths.begin();