1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-26 08:41:13 +02:00

Some tweaks for mod loading. Still doesn't work.

This commit is contained in:
DjWarmonger 2012-09-18 14:22:15 +00:00
parent abd4a96bf1
commit 20b54a39b6

View File

@ -1,7 +1,7 @@
#include "StdInc.h" #include "StdInc.h"
#include "CModHandler.h" #include "CModHandler.h"
#include "JsonNode.h" #include "JsonNode.h"
#include "Filesystem\CResourceLoader.h" //TODO: reorganize
/* /*
* CModHandler.h, part of VCMI engine * CModHandler.h, part of VCMI engine
* *
@ -65,9 +65,8 @@ void CModHandler::loadConfigFromFile (std::string name)
//auto mods = config["activeMods"]; //TODO: load only mods from the list //auto mods = config["activeMods"]; //TODO: load only mods from the list
CResourceLoader * modLoader = new CResourceLoader; auto resourceLoader = CResourceHandler::get();
auto iterator = resourceLoader->getIterator([](const ResourceID & ident) -> bool
auto iterator = modLoader->getIterator([](const ResourceID & ident) -> bool
{ {
std::string name = ident.getName(); std::string name = ident.getName();