diff libmlk-adventure/adventure/molko.c @ 267:bead76f6c793

adventure: start a global assets registry
author David Demelier <markand@malikania.fr>
date Thu, 10 Dec 2020 16:28:30 +0100
parents 11db1d425502
children 8d41e317c07b
line wrap: on
line diff
--- a/libmlk-adventure/adventure/molko.c	Thu Dec 10 16:28:03 2020 +0100
+++ b/libmlk-adventure/adventure/molko.c	Thu Dec 10 16:28:30 2020 +0100
@@ -41,6 +41,7 @@
 #include <adventure/state/mainmenu.h>
 #include <adventure/state/map.h>
 
+#include "assets.h"
 #include "molko.h"
 
 #define WINDOW_WIDTH    1280
@@ -78,6 +79,9 @@
 	molko.panic = panic_state_new();
 	panic_handler = crash;
 
+	/* Init other stuff. */
+	assets_init();
+
 	/* Start to splash. */
 	game_switch(splashscreen_state_new(), true);
 }