Remove hard coding of filename

This commit is contained in:
Patricia Aas 2021-10-17 21:33:54 +02:00
parent 45bad37220
commit a70be02733
1 changed files with 1 additions and 1 deletions

View File

@ -190,7 +190,7 @@ sf::Texture Canvas::loadTexture(std::string_view path) {
sf::Font Canvas::loadFont(std::string_view path) {
sf::Font font;
if (!font.loadFromFile("retro_font.ttf")) {
if (!font.loadFromFile(std::string{ path })) {
exitFailure(fmt::format("Failed to load font {}", path));
}
return font;