Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/common/functions_utility.js
Context not available. | |||||
*/ | */ | ||||
var g_LastNickNotification = -1; | var g_LastNickNotification = -1; | ||||
/** | |||||
* XEP-0172 doesn't restrict nicknames, but our lobby policy does. | |||||
* So use this human readable delimiter to separate buddy names in the config file. | |||||
*/ | |||||
var g_ConfigListDelimiter = ","; | |||||
/** | |||||
* Divide 1 with rate to turn around order and | |||||
* round to 8th decimal place (setted to fixed 8 decimal places) | |||||
*/ | |||||
function setUserConfigValues(key, array) | |||||
{ | |||||
// warn(uneval(array)); | |||||
// Don't save empty strings to the config file | |||||
let value = array.filter(value => value).join(g_ConfigListDelimiter) || g_ConfigListDelimiter; | |||||
// warn(uneval(value)); | |||||
Engine.ConfigDB_CreateValue("user", key, value); | |||||
} | |||||
// Get list of XML files in pathname with recursion, excepting those starting with _ | // Get list of XML files in pathname with recursion, excepting those starting with _ | ||||
function getXMLFileList(pathname) | function getXMLFileList(pathname) | ||||
{ | { | ||||
Context not available. |
Wildfire Games · Phabricator