Started implementing ability to load custom config files (currently unstable).

Feel free to help out with this if you like :)
This commit is contained in:
BenDol
2014-04-01 05:43:31 +13:00
parent f4de000646
commit 61059e66ec
13 changed files with 320 additions and 147 deletions

View File

@@ -91,9 +91,9 @@ function init()
g_keyboard.bindKeyDown('Ctrl+Shift+R', reloadScripts)
-- generate machine uuid, this is a security measure for storing passwords
if not g_crypt.setMachineUUID(g_configs.get('uuid')) then
g_configs.set('uuid', g_crypt.getMachineUUID())
g_configs.save()
if not g_crypt.setMachineUUID(g_settings.get('uuid')) then
g_settings.set('uuid', g_crypt.getMachineUUID())
g_settings.save()
end
end