Add the mod search path user/mods/gameid
authorPerttu Ahola <celeron55@gmail.com>
Mon, 19 Mar 2012 06:34:38 +0000 (08:34 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 19 Mar 2012 06:34:38 +0000 (08:34 +0200)
src/server.cpp

index f3bf1e23f5541d403a93552b0168ea1f68ae04bd..df9a4d390b7daa800e3b76d44ef7ca63bfa7b072 100644 (file)
@@ -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();