Comparison

core/modulemanager.lua @ 3587:d94aacb2771a

componentmanager, hostmanager, modulemanager, mod_component: Got rid of the useless hosts[*].connected property.
author Waqas Hussain <waqas20@gmail.com>
date Wed, 10 Nov 2010 03:39:38 +0500
parent 3539:8bbd965267b2
child 3588:1e570ed17147
comparison
equal deleted inserted replaced
3586:78ed7ad330ab 3587:d94aacb2771a
133 133
134 setfenv(mod, pluginenv); 134 setfenv(mod, pluginenv);
135 if not hosts[host] then 135 if not hosts[host] then
136 local create_component = _G.require "core.componentmanager".create_component; 136 local create_component = _G.require "core.componentmanager".create_component;
137 hosts[host] = create_component(host); 137 hosts[host] = create_component(host);
138 hosts[host].connected = false;
139 log("debug", "Created new component: %s", host); 138 log("debug", "Created new component: %s", host);
140 end 139 end
141 hosts[host].modules = modulemap[host]; 140 hosts[host].modules = modulemap[host];
142 modulemap[host][module_name] = pluginenv; 141 modulemap[host][module_name] = pluginenv;
143 142