rename conf to multicraft.conf
This commit is contained in:
parent
5349ea0800
commit
0c320aaff2
@ -172,7 +172,7 @@ install(FILES "README.txt" DESTINATION "${DOCDIR}")
|
|||||||
install(FILES "doc/lua_api.txt" DESTINATION "${DOCDIR}")
|
install(FILES "doc/lua_api.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "doc/menu_lua_api.txt" DESTINATION "${DOCDIR}")
|
install(FILES "doc/menu_lua_api.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "doc/mapformat.txt" DESTINATION "${DOCDIR}")
|
install(FILES "doc/mapformat.txt" DESTINATION "${DOCDIR}")
|
||||||
install(FILES "minetest.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
install(FILES "multicraft.conf.example" DESTINATION "${EXAMPLE_CONF_DIR}")
|
||||||
|
|
||||||
if(UNIX AND NOT APPLE)
|
if(UNIX AND NOT APPLE)
|
||||||
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
|
install(FILES "doc/minetest.6" "doc/minetestserver.6" DESTINATION "${MANDIR}/man6")
|
||||||
|
@ -323,8 +323,6 @@
|
|||||||
# Announce to this masterserver.
|
# Announce to this masterserver.
|
||||||
# If you want to announce your ipv6 address - use serverlist_url = v6.servers.minetest.net.
|
# If you want to announce your ipv6 address - use serverlist_url = v6.servers.minetest.net.
|
||||||
#serverlist_url = servers.minetest.net
|
#serverlist_url = servers.minetest.net
|
||||||
# Default game (default when creating a new world)
|
|
||||||
#default_game = minetest
|
|
||||||
# World directory (everything in the world is stored here)
|
# World directory (everything in the world is stored here)
|
||||||
#map-dir = /custom/world
|
#map-dir = /custom/world
|
||||||
# Message of the Day
|
# Message of the Day
|
@ -122,7 +122,7 @@ void GUIKeyChangeMenu::regenerateGui(v2u32 screensize)
|
|||||||
core::rect < s32 > rect(0, 0, 600, 40);
|
core::rect < s32 > rect(0, 0, 600, 40);
|
||||||
rect += topleft + v2s32(25, 3);
|
rect += topleft + v2s32(25, 3);
|
||||||
//gui::IGUIStaticText *t =
|
//gui::IGUIStaticText *t =
|
||||||
const wchar_t *text = wgettext("Keybindings. (If this menu screws up, remove stuff from minetest.conf)");
|
const wchar_t *text = wgettext("Keybindings. (If this menu screws up, remove stuff from multicraft.conf)");
|
||||||
Environment->addStaticText(text,
|
Environment->addStaticText(text,
|
||||||
rect, false, true, this, -1);
|
rect, false, true, this, -1);
|
||||||
delete[] text;
|
delete[] text;
|
||||||
|
@ -506,16 +506,16 @@ static bool read_config_file(const Settings &cmd_args)
|
|||||||
g_settings_path = cmd_args.get("config");
|
g_settings_path = cmd_args.get("config");
|
||||||
} else {
|
} else {
|
||||||
std::vector<std::string> filenames;
|
std::vector<std::string> filenames;
|
||||||
filenames.push_back(porting::path_user + DIR_DELIM + "minetest.conf");
|
filenames.push_back(porting::path_user + DIR_DELIM + "multicraft.conf");
|
||||||
// Legacy configuration file location
|
// Legacy configuration file location
|
||||||
filenames.push_back(porting::path_user +
|
filenames.push_back(porting::path_user +
|
||||||
DIR_DELIM + ".." + DIR_DELIM + "minetest.conf");
|
DIR_DELIM + ".." + DIR_DELIM + "multicraft.conf");
|
||||||
|
|
||||||
#if RUN_IN_PLACE
|
#if RUN_IN_PLACE
|
||||||
// Try also from a lower level (to aid having the same configuration
|
// Try also from a lower level (to aid having the same configuration
|
||||||
// for many RUN_IN_PLACE installs)
|
// for many RUN_IN_PLACE installs)
|
||||||
filenames.push_back(porting::path_user +
|
filenames.push_back(porting::path_user +
|
||||||
DIR_DELIM + ".." + DIR_DELIM + ".." + DIR_DELIM + "minetest.conf");
|
DIR_DELIM + ".." + DIR_DELIM + ".." + DIR_DELIM + "multicraft.conf");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
for (size_t i = 0; i < filenames.size(); i++) {
|
for (size_t i = 0; i < filenames.size(); i++) {
|
||||||
|
@ -33,7 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
|
|
||||||
bool getGameMinetestConfig(const std::string &game_path, Settings &conf)
|
bool getGameMinetestConfig(const std::string &game_path, Settings &conf)
|
||||||
{
|
{
|
||||||
std::string conf_path = game_path + DIR_DELIM + "minetest.conf";
|
std::string conf_path = game_path + DIR_DELIM + "multicraft.conf";
|
||||||
return conf.readConfigFile(conf_path.c_str());
|
return conf.readConfigFile(conf_path.c_str());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ struct SubgameSpec
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
// minetest.conf
|
// main config
|
||||||
bool getGameMinetestConfig(const std::string &game_path, Settings &conf);
|
bool getGameMinetestConfig(const std::string &game_path, Settings &conf);
|
||||||
// game.conf
|
// game.conf
|
||||||
bool getGameConfig(const std::string &game_path, Settings &conf);
|
bool getGameConfig(const std::string &game_path, Settings &conf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user