X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FRuntime.hpp;h=1e660e0ac9465903bb475410fb542303425f4b00;hb=d2f4c8720ae2326fac4203fa4984d835e875b355;hp=36808a0e2a0e385cbcc9b2bd013e4310abdba1ef;hpb=8ae45b6555d55f301f83daf8c1337d332d8305ab;p=blank.git diff --git a/src/app/Runtime.hpp b/src/app/Runtime.hpp index 36808a0..1e660e0 100644 --- a/src/app/Runtime.hpp +++ b/src/app/Runtime.hpp @@ -40,25 +40,22 @@ public: }; struct Config { - bool vsync = true; - bool doublebuf = true; - int multisampling = 1; - - client::Client::Config client = client::Client::Config(); - Generator::Config gen = Generator::Config(); + blank::Config game = blank::Config(); HeadlessEnvironment::Config env = HeadlessEnvironment::Config(); - Interface::Config interface = Interface::Config(); - server::Server::Config server = server::Server::Config(); + Generator::Config gen = Generator::Config(); World::Config world = World::Config(); }; Runtime() noexcept; - void ReadArgs(int argc, const char *const *argv); + void Initialize(int argc, const char *const *argv); int Execute(); private: + void ReadArgs(int argc, const char *const *argv); + void ReadPreferences(); + void RunStandalone(); void RunServer(); void RunClient();