summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 2180655..ff248f1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -22,6 +22,7 @@
#include <stdlib.h>
#include "defs.h"
#include "dirs.h"
+#include "splash.h"
static SDL_Window *_mf_window;
static SDL_Renderer *_mf_renderer;
@@ -87,6 +88,8 @@ int
main(int argc __attribute__((__unused__)),
char *argv[] __attribute__((__unused__)))
{
+ int e;
+
/* Find data directories */
mf_find_dirs(argv[0]);
@@ -95,8 +98,13 @@ main(int argc __attribute__((__unused__)),
return EXIT_FAILURE;
}
+ e = EXIT_SUCCESS;
+ if (mf_splash(_mf_renderer) < 0) {
+ e = EXIT_FAILURE;
+ }
+
/* Quit SDL libraries */
_mf_quit();
- return EXIT_SUCCESS;
+ return e;
}