]> git.localhorst.tv Git - blank.git/blobdiff - src/app/runtime.cpp
centralize fonts
[blank.git] / src / app / runtime.cpp
index 30b15aeb4b0d105b713255fbba892837481d45a7..85d8280987b8459f3e50fbaac37d026a5924a92a 100644 (file)
@@ -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: