Comparison

core/configmanager.lua @ 1618:ba2a92230b77

Merge with 0.5
author Matthew Wild <mwild1@gmail.com>
date Tue, 28 Jul 2009 19:17:09 +0100
parent 1615:0e3eacf135f2
child 1777:de86734d3f7f
comparison
equal deleted inserted replaced
1611:e20f90743863 1618:ba2a92230b77
111 end, 111 end,
112 __newindex = function (t, k, v) 112 __newindex = function (t, k, v)
113 set(env.__currenthost or "*", "core", k, v); 113 set(env.__currenthost or "*", "core", k, v);
114 end}); 114 end});
115 115
116 rawset(env, "__currenthost", "*") -- Default is global
116 function env.Host(name) 117 function env.Host(name)
117 rawset(env, "__currenthost", name); 118 rawset(env, "__currenthost", name);
118 -- Needs at least one setting to logically exist :) 119 -- Needs at least one setting to logically exist :)
119 set(name or "*", "core", "defined", true); 120 set(name or "*", "core", "defined", true);
120 end 121 end