Text: revisada la classe
window_message: correcions
This commit is contained in:
@@ -131,7 +131,7 @@ auto Resource::getTexture(const std::string &name) -> std::shared_ptr<Texture> {
|
||||
}
|
||||
|
||||
// Obtiene el fichero de texto a partir de un nombre. Lanza excepción si no existe.
|
||||
auto Resource::getTextFile(const std::string &name) -> std::shared_ptr<TextFile> {
|
||||
auto Resource::getTextFile(const std::string &name) -> std::shared_ptr<Text::File> {
|
||||
auto it = std::find_if(text_files_.begin(), text_files_.end(), [&name](const auto &t) { return t.name == name; });
|
||||
|
||||
if (it != text_files_.end()) {
|
||||
@@ -225,7 +225,7 @@ void Resource::loadTextFiles() {
|
||||
for (const auto &l : list) {
|
||||
auto name = getFileName(l);
|
||||
updateLoadingProgress(name);
|
||||
text_files_.emplace_back(name, loadTextFile(l));
|
||||
text_files_.emplace_back(name, Text::loadFile(l));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user