mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 20:14:54 +02:00
some refactoring
This commit is contained in:
@@ -37,9 +37,9 @@ void Fonts::init()
|
||||
// load all fonts
|
||||
std::list<std::string> files = g_resources.listDirectoryFiles();
|
||||
foreach(const std::string& file, files) {
|
||||
if(boost::ends_with(file, ".yml")) {
|
||||
if(boost::ends_with(file, ".otml")) {
|
||||
std::string name = file;
|
||||
boost::erase_first(name, ".yml");
|
||||
boost::erase_first(name, ".otml");
|
||||
FontPtr font(new Font(name));
|
||||
if(font->load(file))
|
||||
m_fonts.push_back(font);
|
||||
|
Reference in New Issue
Block a user