Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2015, 10:44:57 PM (9 years ago)
Author:
landauf
Message:

Loader is now a singleton instead of a static class. fixes issue with statically initialized ClassTreeMask (which again requires a BaseObject-Identifier)

File:
1 edited

Legend:

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

    r10362 r10392  
    7070#include "class/Identifier.h"
    7171#include "Language.h"
     72#include "Loader.h"
    7273#include "LuaState.h"
    7374#include "command/ConsoleCommandManager.h"
     
    102103        , configFileManager_(NULL)
    103104        , languageInstance_(NULL)
     105        , loaderInstance_(NULL)
    104106        , ioConsole_(NULL)
    105107        , tclBind_(NULL)
     
    208210        IdentifierManager::getInstance().createClassHierarchy();
    209211
     212        // Loader
     213        this->loaderInstance_ = new Loader();
     214
    210215        // Load OGRE excluding the renderer and the render window
    211216        orxout(internal_info) << "creating GraphicsManager:" << endl;
     
    253258        safeObjectDelete(&tclBind_);
    254259        safeObjectDelete(&ioConsole_);
     260        safeObjectDelete(&loaderInstance_);
    255261        safeObjectDelete(&languageInstance_);
    256262        safeObjectDelete(&configFileManager_);
Note: See TracChangeset for help on using the changeset viewer.