many modules fixes

This commit is contained in:
Eduardo Bart
2012-06-03 21:28:19 -03:00
parent cfa7db77da
commit 296f2a17c4
11 changed files with 31 additions and 23 deletions

View File

@@ -70,7 +70,7 @@ void ModuleManager::discoverModulesPath()
for(const std::string& dir : possibleModulesDirs) {
// try to add module directory
if(g_resources.addToSearchPath(dir, false)) {
g_logger.info(stdext::format("Using modules directory '%s'", dir.c_str()));
//g_logger.info(stdext::format("Using modules directory '%s'", dir.c_str()));
found = true;
break;
}
@@ -88,7 +88,7 @@ void ModuleManager::discoverModulesPath()
for(const std::string& dir : possibleAddonsDirs) {
// try to add module directory
if(g_resources.addToSearchPath(dir, true)) {
g_logger.info(stdext::format("Using addons directory '%s'", dir.c_str()));
//g_logger.info(stdext::format("Using addons directory '%s'", dir.c_str()));
found = true;
break;
}

View File

@@ -252,7 +252,7 @@ void push_luavalue(const OTMLNodePtr& node)
int currentIndex = 1;
for(const OTMLNodePtr& cnode : node->children()) {
push_otml_subnode_luavalue(cnode);
if(cnode->isUnique()) {
if(cnode->isUnique() && !cnode->tag().empty()) {
g_lua.setField(cnode->tag());
} else
g_lua.rawSeti(currentIndex++);