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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user