Slight rework so that config can have a base dir but the program can start in another one.
This commit is contained in:
parent
d1c2352237
commit
3d4ddde96e
8 changed files with 32 additions and 13 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue