1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-15 19:42:10 +00:00

add keyring_file

This commit is contained in:
Abdurahman Elmawi 2025-06-28 21:50:57 +03:00
parent 587acbaa5d
commit 1b29568096
4 changed files with 9 additions and 1 deletions

View file

@ -380,6 +380,7 @@ void set_default_settings()
// Main menu
settings->setDefault("main_menu_path", "");
settings->setDefault("serverlist_file", "favoriteservers.json");
settings->setDefault("keyring_file", "keyring.json");
// General font settings
settings->setDefault("font_path", porting::getDataPath("fonts" DIR_DELIM "Arimo-Regular.ttf"));

View file

@ -48,7 +48,7 @@ static inline int checkSettingSecurity(lua_State* L, const std::string &name)
const char *disallowed[] = {
"main_menu_script", "shader_path", "texture_path", "screenshot_path",
"serverlist_file", "serverlist_url", "map-dir", "contentdb_url",
"serverlist_file", "keyring_file", "serverlist_url", "map-dir", "contentdb_url",
};
for (const char *name2 : disallowed) {
if (name == name2)