Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 17, 2011, 2:28:23 AM (13 years ago)
Author:
rgrieder
Message:

Fixed serious static initialisation problem. And I thought we caught them all…
Also replaced remaining references to Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP with our own code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/kicklib/src/libraries/core/Resource.cc

    r6746 r8081  
    3636namespace orxonox
    3737{
    38     std::string Resource::DEFAULT_GROUP(Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME);
     38    const std::string& Resource::getDefaultResourceGroup()
     39    {
     40        return Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME;
     41    }
    3942
    4043    DataStreamPtr Resource::open(const std::string& name)
    4144    {
    4245        return Ogre::ResourceGroupManager::getSingleton().openResource(name,
    43             Ogre::ResourceGroupManager::DEFAULT_RESOURCE_GROUP_NAME, true);
     46            getDefaultResourceGroup(), true);
    4447    }
    4548
Note: See TracChangeset for help on using the changeset viewer.