aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-12-03 03:43:20 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-12-03 03:43:20 +0200
commitc6dd75ccfb75fcdafc38b63ef1906369c4873948 (patch)
treeb945c5bc20e1dcd387671cd826073d4e1b52b65f /src
parent6b2023dc3eb1b483c92ba967f3335bb6880d2db1 (diff)
downloadminetest-c6dd75ccfb75fcdafc38b63ef1906369c4873948.tar.gz
minetest-c6dd75ccfb75fcdafc38b63ef1906369c4873948.tar.bz2
minetest-c6dd75ccfb75fcdafc38b63ef1906369c4873948.zip
Add usermods/ to mod search paths and print out the paths at server startup
Diffstat (limited to 'src')
-rw-r--r--src/server.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/server.cpp b/src/server.cpp
index 032b57e3c..873198d1e 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -875,16 +875,24 @@ Server::Server(
JMutexAutoLock envlock(m_env_mutex);
JMutexAutoLock conlock(m_con_mutex);
- infostream<<"m_nodedef="<<m_nodedef<<std::endl;
-
// Path to builtin.lua
std::string builtinpath = porting::path_data + DIR_DELIM + "builtin.lua";
// Add default global mod search path
m_modspaths.push_front(porting::path_data + DIR_DELIM + "mods");
// Add world mod search path
- m_modspaths.push_front(mapsavedir + DIR_DELIM + "mods");
-
+ m_modspaths.push_front(mapsavedir + DIR_DELIM + "worldmods");
+ // Add user mod search path
+ m_modspaths.push_front(porting::path_userdata + DIR_DELIM + "usermods");
+
+ // Print out mod search paths
+ infostream<<"Mod search paths:"<<std::endl;
+ for(core::list<std::string>::Iterator i = m_modspaths.begin();
+ i != m_modspaths.end(); i++){
+ std::string modspath = *i;
+ infostream<<" "<<modspath<<std::endl;
+ }
+
// Initialize scripting
infostream<<"Server: Initializing scripting"<<std::endl;