mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
add keyring_file
This commit is contained in:
parent
587acbaa5d
commit
1b29568096
4 changed files with 9 additions and 1 deletions
|
@ -2436,6 +2436,9 @@ enable_remote_media_server (Connect to external media server) [client] bool true
|
|||
# Multiplayer Tab.
|
||||
serverlist_file (Serverlist file) [client] string favoriteservers.json
|
||||
|
||||
# File in client/ that contains your saved usernames and passwords for Multiplayer
|
||||
keyring_file (Keyring file) [client] string keyring.json
|
||||
|
||||
|
||||
[*Gamepads] [client]
|
||||
|
||||
|
|
|
@ -3627,6 +3627,10 @@
|
|||
# type: string
|
||||
# serverlist_file = favoriteservers.json
|
||||
|
||||
# File in client/ that contains your saved usernames and passwords for Multiplayer
|
||||
# type: string
|
||||
# keyring_file = keyring.json
|
||||
|
||||
## Gamepads
|
||||
|
||||
# Enable joysticks. Requires a restart to take effect
|
||||
|
|
|
@ -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"));
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue