1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

All images are now loaded via RenderHandler class

This commit is contained in:
Ivan Savenko
2024-05-22 11:28:13 +00:00
parent 2020d96070
commit 56f1725234
12 changed files with 147 additions and 125 deletions

View File

@@ -12,7 +12,6 @@
#include "CDefFile.h"
#include "Graphics.h"
#include "../../lib/filesystem/Filesystem.h"
#include "../../lib/json/JsonUtils.h"
#include "../renderSDL/SDLImage.h"
@@ -179,8 +178,8 @@ void CAnimation::init()
source[defEntry.first].resize(defEntry.second);
}
if (vstd::contains(graphics->imageLists, name.getName()))
initFromJson(graphics->imageLists[name.getName()]);
// if (vstd::contains(graphics->imageLists, name.getName()))
// initFromJson(graphics->imageLists[name.getName()]);
auto jsonResource = name.toType<EResType::JSON>();
auto configList = CResourceHandler::get()->getResourcesWithName(jsonResource);