mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Add the mod search path user/mods/gameid
This commit is contained in:
parent
5ef78cd815
commit
1ff20da5b6
@ -904,6 +904,9 @@ Server::Server(
|
|||||||
for(std::set<std::string>::const_iterator i = m_gamespec.addon_paths.begin();
|
for(std::set<std::string>::const_iterator i = m_gamespec.addon_paths.begin();
|
||||||
i != m_gamespec.addon_paths.end(); i++)
|
i != m_gamespec.addon_paths.end(); i++)
|
||||||
m_modspaths.push_front((*i) + DIR_DELIM + "mods");
|
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
|
// Print out mod search paths
|
||||||
for(core::list<std::string>::Iterator i = m_modspaths.begin();
|
for(core::list<std::string>::Iterator i = m_modspaths.begin();
|
||||||
|
Loading…
Reference in New Issue
Block a user