Finished stable implementation (as far as tested), still requires more testing.

This commit is contained in:
BenDol
2014-04-01 16:27:33 +13:00
parent 61059e66ec
commit b295053662
22 changed files with 180 additions and 177 deletions

View File

@@ -145,7 +145,7 @@ end
function load(forceDefaults)
hotkeysManagerLoaded = false
local hotkeySettings = g_settings.getNode('game_hotkeys')
local hotkeySettings = g_settings:getNode('game_hotkeys')
local hotkeys = {}
if not table.empty(hotkeySettings) then hotkeys = hotkeySettings end
@@ -192,7 +192,7 @@ function reload()
end
function save()
local hotkeySettings = g_settings.getNode('game_hotkeys') or {}
local hotkeySettings = g_settings:getNode('game_hotkeys') or {}
local hotkeys = hotkeySettings
if perServer then
@@ -223,8 +223,8 @@ function save()
end
hotkeyList = hotkeys
g_settings.setNode('game_hotkeys', hotkeySettings)
g_settings.save()
g_settings:setNode('game_hotkeys', hotkeySettings)
g_settings:save()
end
function loadDefautComboKeys()