X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2Fruntime.cpp;h=ff699794c95f15e2604a45a6ec57e9b289aab4cb;hb=ede25c0a2f59e21521d1cd962e6ea9d78169ca12;hp=30b15aeb4b0d105b713255fbba892837481d45a7;hpb=39df551265bff648c1ac166043bb4b046122cc8d;p=blank.git diff --git a/src/app/runtime.cpp b/src/app/runtime.cpp index 30b15ae..ff69979 100644 --- a/src/app/runtime.cpp +++ b/src/app/runtime.cpp @@ -1,11 +1,10 @@ #include "Application.hpp" #include "Environment.hpp" -#include "PreloadState.hpp" #include "Runtime.hpp" #include "WorldState.hpp" #include "init.hpp" -#include "../world/WorldSave.hpp" +#include "../io/WorldSave.hpp" #include #include @@ -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: