Slight rework so that config can have a base dir but the program can start in another one.

This commit is contained in:
Zed A. Shaw 2025-04-23 12:08:36 -04:00
parent d1c2352237
commit 3d4ddde96e
8 changed files with 32 additions and 13 deletions

View file

@ -1,6 +1,7 @@
#include "guecs.hpp"
#include "shaders.hpp"
#include "sound.hpp"
#include "config.hpp"
namespace guecs {
@ -108,7 +109,7 @@ namespace guecs {
}
UI::UI() {
$font = make_shared<sf::Font>(FONT_FILE_NAME);
$font = make_shared<sf::Font>(Config::path_to(FONT_FILE_NAME));
}
void UI::position(int x, int y, int width, int height) {