Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 25, 2015, 7:20:21 PM (9 years ago)
Author:
landauf
Message:

moved config values and all related functions from Game and Core to GameConfig and CoreConfig respectively. this ensures that no framework features are used by Game and Core before Core itself initialized the framework.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core7/src/libraries/core/GraphicsManager.cc

    r10392 r10479  
    281281        orxout(internal_info) << "GraphicsManager: Configuring Renderer" << endl;
    282282
    283         bool updatedConfig = Core::getInstance().getOgreConfigTimestamp() > Core::getInstance().getLastLevelTimestamp();
     283        bool updatedConfig = Core::getInstance().getConfig()->getOgreConfigTimestamp() > Core::getInstance().getConfig()->getLastLevelTimestamp();
    284284        if (updatedConfig)
    285285            orxout(user_info)<< "Ogre config file has changed, but no level was started since then. Displaying config dialogue again to verify the changes." << endl;
     
    290290                ThrowException(InitialisationFailed, "OGRE graphics configuration dialogue canceled.");
    291291            else
    292                 Core::getInstance().updateOgreConfigTimestamp();
     292                Core::getInstance().getConfig()->updateOgreConfigTimestamp();
    293293        }
    294294
     
    516516            GraphicsManager::getInstance().getRenderWindow()->setFullscreen(fullscreen, width, height);
    517517            this->ogreRoot_->saveConfig();
    518             Core::getInstance().updateOgreConfigTimestamp();
     518            Core::getInstance().getConfig()->updateOgreConfigTimestamp();
    519519            // Also reload the input devices
    520520            InputManager::getInstance().reload();
     
    534534            //this->ogreRoot_->getRenderSystem()->reinitialise(); // can't use this that easily, because it recreates the render window, invalidating renderWindow_
    535535            this->ogreRoot_->saveConfig();
    536             Core::getInstance().updateOgreConfigTimestamp();
     536            Core::getInstance().getConfig()->updateOgreConfigTimestamp();
    537537        }
    538538
     
    550550            //this->ogreRoot_->getRenderSystem()->reinitialise(); // can't use this that easily, because it recreates the render window, invalidating renderWindow_
    551551            this->ogreRoot_->saveConfig();
    552             Core::getInstance().updateOgreConfigTimestamp();
     552            Core::getInstance().getConfig()->updateOgreConfigTimestamp();
    553553        }
    554554
Note: See TracChangeset for help on using the changeset viewer.