X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fruntime.cpp;h=eaeea8dd85c5c8940074fb4792e50e58271ec3e8;hb=22b25d4b9cc24e249bc8007757267cea00ab18d3;hp=37cca50a4ef54229861245df31ba861c8ea6b3d0;hpb=afd253b2dd10fdf2d4655d3d4a5766e6aa8c1a2c;p=blank.git diff --git a/src/app/runtime.cpp b/src/app/runtime.cpp index 37cca50..eaeea8d 100644 --- a/src/app/runtime.cpp +++ b/src/app/runtime.cpp @@ -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: