mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
fix
This commit is contained in:
parent
82480e3552
commit
f6d5cee24f
@ -18,8 +18,6 @@
|
|||||||
|
|
||||||
#include "../lib/filesystem/Filesystem.h"
|
#include "../lib/filesystem/Filesystem.h"
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
|
||||||
|
|
||||||
void AssetGenerator::generate()
|
void AssetGenerator::generate()
|
||||||
{
|
{
|
||||||
createBigSpellBook("data/SpelBk2.bmp");
|
createBigSpellBook("data/SpelBk2.bmp");
|
||||||
@ -49,6 +47,7 @@ void AssetGenerator::createAdventureOptionsCleanBackground(std::string filename)
|
|||||||
ResourcePath savePath(filename, EResType::IMAGE);
|
ResourcePath savePath(filename, EResType::IMAGE);
|
||||||
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
|
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
void AssetGenerator::createBigSpellBook(std::string filename)
|
void AssetGenerator::createBigSpellBook(std::string filename)
|
||||||
{
|
{
|
||||||
if(!CResourceHandler::get("local")->createResource(filename))
|
if(!CResourceHandler::get("local")->createResource(filename))
|
||||||
@ -106,5 +105,3 @@ void AssetGenerator::createBigSpellBook(std::string filename)
|
|||||||
ResourcePath savePath(filename, EResType::IMAGE);
|
ResourcePath savePath(filename, EResType::IMAGE);
|
||||||
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
|
image->exportBitmap(*CResourceHandler::get("local")->getResourceName(savePath));
|
||||||
}
|
}
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_END
|
|
||||||
|
@ -9,16 +9,11 @@
|
|||||||
*/
|
*/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_BEGIN
|
class AssetGenerator
|
||||||
|
|
||||||
|
|
||||||
class DLL_LINKAGE AssetGenerator
|
|
||||||
{
|
{
|
||||||
static void createBigSpellBook(std::string filename);
|
|
||||||
static void createAdventureOptionsCleanBackground(std::string filename);
|
static void createAdventureOptionsCleanBackground(std::string filename);
|
||||||
|
static void createBigSpellBook(std::string filename);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
static void generate();
|
static void generate();
|
||||||
};
|
};
|
||||||
|
|
||||||
VCMI_LIB_NAMESPACE_END
|
|
||||||
|
Loading…
Reference in New Issue
Block a user