too many changes to list, many regressions were made, master will be UNSTABLE for a few days

This commit is contained in:
Eduardo Bart
2011-12-03 19:41:37 -02:00
parent 19eb56997d
commit f548825faf
80 changed files with 1881 additions and 1843 deletions

View File

@@ -6,8 +6,8 @@ local fpsEnabled = false
local vsyncEnabled = false
function getConfig(name, default)
if ConfigManager.exists(name) then
local val = string.trim(ConfigManager.get(name))
if g_configs.exists(name) then
local val = string.trim(g_configs.get(name))
if val == 'true' or val == 'false' then
return toboolean(val)
else
@@ -15,7 +15,7 @@ function getConfig(name, default)
end
else
if default ~= nil then
ConfigManager.set(name, default)
g_configs.set(name, default)
return default
else
return nil
@@ -24,13 +24,13 @@ function getConfig(name, default)
end
function setConfig(name, value)
ConfigManager.set(name, tostring(value))
g_configs.set(name, tostring(value))
end
-- private functions
function Options.enableVsync(on)
vsyncEnabled = on
setVerticalSync(on)
g_window.setVerticalSync(on)
setConfig('vsync', on)
end