]> Dogcows Code - chaz/yoink/blobdiff - src/Moof/Engine.cc
no more useless singleton class
[chaz/yoink] / src / Moof / Engine.cc
index 78233688d60f69dba90c880a0c9e94b9518f0814..d7d04a846af6bc54753551d1135d582b481fab06 100644 (file)
@@ -35,7 +35,6 @@
 #include <SDL/SDL_sound.h>
 #include <AL/alut.h>
 
-#include "Dispatcher.hh"
 #include "Engine.hh"
 #include "Random.hh"
 #include "Settings.hh"
@@ -52,8 +51,7 @@ public:
        Impl(int argc, char* argv[], const std::string& configFile,
                        const std::string& name, const std::string& iconFile,
                        Engine* outer) :
-               interface(outer),
-               settings(argc, argv)
+               interface(outer)
        {
                if (SDL_Init(SDL_INIT_EVERYTHING | SDL_INIT_EVENTTHREAD) != 0)
                {
@@ -70,6 +68,8 @@ public:
                }
                alutInit(&argc, argv);
 
+               Settings& settings = Settings::getInstance();
+               settings.parseArgs(argc, argv);
                settings.loadFromFile(configFile);
 
                long randomSeed;
@@ -219,8 +219,6 @@ public:
 
        Engine*         interface;
 
-       Settings        settings;
-       Dispatcher      dispatcher;
        VideoPtr        video;
 
        bool            running;
This page took 0.020349 seconds and 4 git commands to generate.