]> git.localhorst.tv Git - blank.git/blobdiff - src/app/runtime.cpp
(hopefully) cross-platform directory functions
[blank.git] / src / app / runtime.cpp
index 37cca50a4ef54229861245df31ba861c8ea6b3d0..eaeea8dd85c5c8940074fb4792e50e58271ec3e8 100644 (file)
@@ -1,5 +1,6 @@
 #include "Application.hpp"
 #include "Environment.hpp"
+#include "PreloadState.hpp"
 #include "Runtime.hpp"
 #include "WorldState.hpp"
 
@@ -176,8 +177,11 @@ int Runtime::Execute() {
 
        Application app(env);
 
-       WorldState state(env, config.interface, config.world);
-       app.PushState(&state);
+       WorldState world_state(env, config.interface, config.world);
+       app.PushState(&world_state);
+
+       PreloadState preloader(env, world_state.GetWorld().Loader());
+       app.PushState(&preloader);
 
        switch (mode) {
                default: