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

Always use ResourcePath for referencing images and animations

This commit is contained in:
Ivan Savenko
2023-08-23 15:07:50 +03:00
parent f79492e5b0
commit 823ffa7a07
201 changed files with 1390 additions and 1362 deletions

View File

@@ -24,7 +24,7 @@
#include <SDL_surface.h>
void CBitmapFont::loadModFont(const std::string & modName, const ResourceID & resource)
void CBitmapFont::loadModFont(const std::string & modName, const ResourcePath & resource)
{
if (!CResourceHandler::get(modName)->existsResource(resource))
{
@@ -72,7 +72,7 @@ void CBitmapFont::loadModFont(const std::string & modName, const ResourceID & re
CBitmapFont::CBitmapFont(const std::string & filename):
maxHeight(0)
{
ResourceID resource("data/" + filename, EResType::BMP_FONT);
ResourcePath resource("data/" + filename, EResType::BMP_FONT);
loadModFont("core", resource);