X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fruntime.cpp;h=85d8280987b8459f3e50fbaac37d026a5924a92a;hb=5cd73a8f2b40e59ec13aa2a6af33bc8e2a6b9a6c;hp=30b15aeb4b0d105b713255fbba892837481d45a7;hpb=39df551265bff648c1ac166043bb4b046122cc8d;p=blank.git diff --git a/src/app/runtime.cpp b/src/app/runtime.cpp index 30b15ae..85d8280 100644 --- a/src/app/runtime.cpp +++ b/src/app/runtime.cpp @@ -1,6 +1,5 @@ #include "Application.hpp" #include "Environment.hpp" -#include "PreloadState.hpp" #include "Runtime.hpp" #include "WorldState.hpp" @@ -236,17 +235,14 @@ int Runtime::Execute() { if (save.Exists()) { save.Read(config.world); } else { - save.Create(config.world); + save.Write(config.world); } Application app(env); - WorldState world_state(env, config.interface, config.world); + WorldState world_state(env, config.interface, config.world, save); app.PushState(&world_state); - PreloadState preloader(env, world_state.GetWorld().Loader()); - app.PushState(&preloader); - switch (mode) { default: case NORMAL: