summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2021-08-02 01:43:44 (EDT)
committer P. J. McDermott <pj@pehjota.net>2021-08-02 01:43:44 (EDT)
commit754f250ef420f11225d3f9f75157c4c02287deff (patch)
tree8e6399aa6ffc9ce7180b049d33d5f7bcba048acc /src/main.c
parent6726ddebccda0eaa6b75d1d14587aecce62ad826 (diff)
downloadmazefight-754f250ef420f11225d3f9f75157c4c02287deff.zip
mazefight-754f250ef420f11225d3f9f75157c4c02287deff.tar.gz
mazefight-754f250ef420f11225d3f9f75157c4c02287deff.tar.bz2
dirs: New functions
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 648bac8..2180655 100644
--- a/src/main.c
+++ b/src/main.c
@@ -21,6 +21,7 @@
#include <SDL_ttf.h>
#include <stdlib.h>
#include "defs.h"
+#include "dirs.h"
static SDL_Window *_mf_window;
static SDL_Renderer *_mf_renderer;
@@ -86,6 +87,9 @@ int
main(int argc __attribute__((__unused__)),
char *argv[] __attribute__((__unused__)))
{
+ /* Find data directories */
+ mf_find_dirs(argv[0]);
+
/* Initialize SDL libraries */
if (_mf_init() < 0) {
return EXIT_FAILURE;