1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

Fix addon and configuration file paths

This commit is contained in:
Perttu Ahola 2012-03-10 16:10:26 +02:00
parent c89d1cf072
commit 1020707918
3 changed files with 12 additions and 2 deletions

View file

@ -886,6 +886,10 @@ Server::Server(
// Figure out some paths
m_path_share = porting::path_share + DIR_DELIM + "server";
m_path_game = m_path_share + DIR_DELIM + "games" + DIR_DELIM + m_gamename;
m_path_addons.insert(m_path_share + DIR_DELIM + "addons"
+ DIR_DELIM + m_gamename);
m_path_addons.insert(porting::path_user + DIR_DELIM + "server"
+ DIR_DELIM + "addons" + DIR_DELIM + m_gamename);
// Path to builtin.lua
std::string builtinpath = m_path_share + DIR_DELIM + "builtin.lua";