mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
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:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user